wiphy_apply...m_regulatory(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so real quick: wiphy_apply_custom_regulatory β€” apply a custom driver regulatory domain πŸ’…

Welcome to the wiphy_apply...m_regulatory(9) page from the Kernel API Manual, bestie 🫢 this is part 1 and we're getting into it.


🌸 SYNOPSIS 🌸

void wiphy_apply_custom_regulatory (struct wiphy *wiphy , const struct
       ieee80211_regdomain *regd );

πŸŽ€ ARGUMENTS πŸŽ€

  • wiphy β€” the wireless device we want to process the regulatory domain on, no cap πŸ“Ά
  • regd β€” the custom regulatory domain to use for this wiphy, periodt ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• Drivers can sometimes have custom regulatory domains which do not apply to a specific country. Drivers can use this to apply such custom regulatory domains. iconic, honestly πŸ‘‘

This routine must be called prior to wiphy registration β€” like, before the wiphy gets registered, bestie πŸ‘‘ don't skip that step.

The custom regulatory domain will be trusted completely and as such previous default channel settings will be disregarded. So yeah, it's the main character here and the old channel settings are getting ignored fr fr πŸ’…

If no rule is found for a channel on the regulatory domain the channel will be disabled 😭 so no rule = channel says bye.

Drivers using this for a wiphy should also set the wiphy flag REGULATORY_CUSTOM_REG or cfg80211 will set it for the wiphy that called this helper. iykyk ⭐

⚠️ must be called prior to wiphy registration β€” that part is lowkey non-negotiable 🫢

✨ SEE ALSO ✨

Okay bestie, this is the link hub πŸ’… β€” the Kernel file ./include/net/cfg80211.h is home base, and these are all the related pages it wants you to know about. No skips, no cap:

okay bestie, this is the rest of the cross-reference pile β€” the whole extended fam of cfg80211 and ieee80211 friends. every single one is here, no cuts, no skips, because we don't do that πŸ’… tap any of them for their own page:


and that's the whole reference list, bestie β€” 64 links deep and not one skipped 🫢 this little encyclopedia lives in ./include/net, dated October 2026, and that's the wrap on the page. go read some kernel source, ilysm πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from