--- zzzz-none-000/linux-4.9.276/net/wireless/chan.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/net/wireless/chan.c 2023-04-05 08:19:02.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)