Re: [PATCH 1/2] wifi: cfg80211: Add beacon hint notifier support

From: Wen Gong
Date: Tue Feb 21 2023 - 19:23:06 EST



On 2/15/2023 11:10 PM, Johannes Berg wrote:
Why is this even needed? You should always get reg_notifier after this
anyway?
Currently when channel flag changed through the beacon hints are not
informed to driver.

reg_notifier will be triggered for regdomain changes but not for channel flag changes due to beacon hints.

So maybe triggering reg notifier once would be sufficient, a la Wen's
patch that I recently merged?

My patch only take effect for this flag, not for all wiphy.

if (wiphy->flags & WIPHY_FLAG_NOTIFY_REGDOM_BY_DRIVER)

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit?id=d99975c4953eb79e389d4630e848435c700e2dfc


johannes