]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Support the 6 GHz band for beacon rate configuration
authorRajkumar Manoharan <rmanohar@codeaurora.org>
Sat, 3 Oct 2020 09:31:15 +0000 (02:31 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 7 Feb 2021 22:26:38 +0000 (00:26 +0200)
Use the correct enum nl80211_band value when configuring the beacon rate
for the 6 GHz band.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
src/drivers/driver_nl80211.c

index fe07f58284587023bca368240120ad6cb0764bc0..aa0e10bd2ba6c3cdd723ac2e78cd78bdee7669e9 100644 (file)
@@ -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);