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 <rmanohar@codeaurora.org>
This commit is contained in:
Rajkumar Manoharan 2020-10-03 02:31:15 -07:00 committed by Jouni Malinen
parent c3d557b4df
commit 7f2f262e6d

View 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);