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,6 +4219,9 @@ 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:
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue