ath_reg_apply_ir_flags(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms