--- zzzz-none-000/linux-4.9.218/net/wireless/chan.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ax-750/linux-4.9.218/net/wireless/chan.c 2023-03-29 10:59:08.000000000 +0000 @@ -150,7 +150,7 @@ } } -static int cfg80211_chandef_get_width(const struct cfg80211_chan_def *c) +int cfg80211_chandef_get_width(const struct cfg80211_chan_def *c) { int width; @@ -251,6 +251,8 @@ if (!c || !(c->flags & IEEE80211_CHAN_RADAR)) continue; + pr_debug("Setting the DFS state of channel %hu to 0x%02x\n", + c->hw_value, dfs_state); c->dfs_state = dfs_state; c->dfs_state_entered = jiffies; } @@ -277,6 +279,7 @@ cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq2, width, dfs_state); } +EXPORT_SYMBOL(cfg80211_set_dfs_state); static u32 cfg80211_get_start_freq(u32 center_freq, u32 bandwidth)