ath_reg_apply_ir_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ath_reg_apply_ir_flags(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes that's the manual name, and yes it's the whole vibe. today we're talking about ath_reg_apply_ir_flags, which tbh doesn't even have a one-liner in its NAME section, so like… it's mysterious, it's enigmatic, it's giving main character energy πŸŽ€. we move.


🌸 NAME 🌸

ath_reg_apply_ir_flags β€” literally that's it, that's the name, no blurb, no nothing πŸ’€. iconic of it honestly.


✨ SYNOPSIS ✨

void ath_reg_apply_ir_flags (struct wiphy *wiphy , struct ath_regulatory
*reg , enum nl80211_reg_initiator initiator );

it returns void, so no sneaky return values to worry about 🫢. copy those types EXACTLY, no cap.


πŸŽ€ ARGUMENTS πŸŽ€

  • wiphy β€” the wiphy you're working with πŸ’– like, this is the stuff you pass in, bestie.
  • reg β€” the regulatory structure, and the glow-up here is that it's used for country selection 🌍✨.
  • initiator β€” the regulatory hint initiator πŸ¦‹ that's the thing that kicked this whole thing off.

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜•. If no country IE has been received, then always enable passive scan and no-ibss on these channels πŸ’…. and ngl, this is only done for specific regulatory SKUs β€” so don't go thinking it's a universal thing, because it is not, periodt πŸ™ˆ.

then, if a country IE has been received, you gotta check its rule for this channel first before enabling active scan πŸ‘‘. because the passive scan would have already been enforced by the initial processing of our custom regulatory domain β€” so like, respect the order of operations, bestie 🧚.

fr fr though: check the rule first. don't skip ahead. that's the whole point 😀.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/net/wireless/ath/regd.c β€” go read it, iykyk πŸ“–βœ¨

and that's the page, bestie πŸ’œ! this slayed its way out of ./drivers/net/wireless/ath back in October 2026, and the manual itself is ath_reg_apply_ir_flags(9) β€” go off, king πŸ‘‘. mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from