From: Govindaraj Saminathan Date: Fri, 6 Dec 2024 13:14:04 +0000 (+0530) Subject: nl80211: Update channels unavailability for 320 MHz X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=888c5b21240a50de545b98692f29fb595b6b586d;p=thirdparty%2Fhostap.git nl80211: Update channels unavailability for 320 MHz Parse NL80211_FREQUENCY_ATTR_NO_320MHZ channel attributes to ensure correct checking of channel availability in a 320 MHz bandwidth. Signed-off-by: Govindaraj Saminathan --- diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index c950ddffc..7c688acf8 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -1726,6 +1726,8 @@ static void phy_info_freq(struct hostapd_hw_modes *mode, chan->allowed_bw &= ~HOSTAPD_CHAN_WIDTH_80; if (tb_freq[NL80211_FREQUENCY_ATTR_NO_160MHZ]) chan->allowed_bw &= ~HOSTAPD_CHAN_WIDTH_160; + if (tb_freq[NL80211_FREQUENCY_ATTR_NO_320MHZ]) + chan->allowed_bw &= ~HOSTAPD_CHAN_WIDTH_320; if (tb_freq[NL80211_FREQUENCY_ATTR_DFS_STATE]) { enum nl80211_dfs_state state = @@ -1827,6 +1829,8 @@ static int phy_info_freqs(struct phy_info_arg *phy_info, [NL80211_FREQUENCY_ATTR_NO_HT40_MINUS] = { .type = NLA_FLAG }, [NL80211_FREQUENCY_ATTR_NO_80MHZ] = { .type = NLA_FLAG }, [NL80211_FREQUENCY_ATTR_NO_160MHZ] = { .type = NLA_FLAG }, + [NL80211_FREQUENCY_ATTR_NO_320MHZ] = { .type = NLA_FLAG }, + }; int new_channels = 0; struct hostapd_channel_data *channel;