From: Rajkumar Manoharan Date: Sat, 3 Oct 2020 09:31:15 +0000 (-0700) Subject: nl80211: Support the 6 GHz band for beacon rate configuration X-Git-Tag: hostap_2_10~601 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2f262e6d85273204b9cd471235059e42e170cf;p=thirdparty%2Fhostap.git nl80211: Support the 6 GHz band for beacon rate configuration Use the correct enum nl80211_band value when configuring the beacon rate for the 6 GHz band. Signed-off-by: Rajkumar Manoharan --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index fe07f5828..aa0e10bd2 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4219,7 +4219,10 @@ static int nl80211_put_beacon_rate(struct nl_msg *msg, const u64 flags, band = nla_nest_start(msg, NL80211_BAND_2GHZ); break; case HOSTAPD_MODE_IEEE80211A: - band = nla_nest_start(msg, NL80211_BAND_5GHZ); + if (is_6ghz_freq(params->freq->freq)) + band = nla_nest_start(msg, NL80211_BAND_6GHZ); + else + band = nla_nest_start(msg, NL80211_BAND_5GHZ); break; case HOSTAPD_MODE_IEEE80211AD: band = nla_nest_start(msg, NL80211_BAND_60GHZ);