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:
parent
c3d557b4df
commit
7f2f262e6d
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
band = nla_nest_start(msg, NL80211_BAND_2GHZ);
|
||||||
break;
|
break;
|
||||||
case HOSTAPD_MODE_IEEE80211A:
|
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;
|
break;
|
||||||
case HOSTAPD_MODE_IEEE80211AD:
|
case HOSTAPD_MODE_IEEE80211AD:
|
||||||
band = nla_nest_start(msg, NL80211_BAND_60GHZ);
|
band = nla_nest_start(msg, NL80211_BAND_60GHZ);
|
||||||
|
|
Loading…
Reference in a new issue