mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
rsi: Assign beacon rate settings to the correct rate_info descriptor field
The RSI_RATE_x bits must be assigned to struct rsi_data_desc rate_info
field. The rest of the driver does it correctly, except this one place,
so fix it. This is also aligned with the RSI downstream vendor driver.
Without this patch, an AP operating at 5 GHz does not transmit any
beacons at all, this patch fixes that.
Fixes: d26a955940
("rsi: add beacon changes for AP mode")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Cc: Angus Ainslie <angus@akkea.ca>
Cc: David S. Miller <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: Karun Eagalapati <karun256@gmail.com>
Cc: Martin Kepplinger <martink@posteo.de>
Cc: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Cc: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Cc: Siva Rebbagondla <siva8118@gmail.com>
Cc: netdev@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210507213105.140138-1-marex@denx.de
This commit is contained in:
parent
29d97219f4
commit
b1c3a24897
1 changed files with 2 additions and 2 deletions
|
@ -470,9 +470,9 @@ int rsi_prepare_beacon(struct rsi_common *common, struct sk_buff *skb)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (common->band == NL80211_BAND_2GHZ)
|
if (common->band == NL80211_BAND_2GHZ)
|
||||||
bcn_frm->bbp_info |= cpu_to_le16(RSI_RATE_1);
|
bcn_frm->rate_info |= cpu_to_le16(RSI_RATE_1);
|
||||||
else
|
else
|
||||||
bcn_frm->bbp_info |= cpu_to_le16(RSI_RATE_6);
|
bcn_frm->rate_info |= cpu_to_le16(RSI_RATE_6);
|
||||||
|
|
||||||
if (mac_bcn->data[tim_offset + 2] == 0)
|
if (mac_bcn->data[tim_offset + 2] == 0)
|
||||||
bcn_frm->frame_info |= cpu_to_le16(RSI_DATA_DESC_DTIM_BEACON);
|
bcn_frm->frame_info |= cpu_to_le16(RSI_DATA_DESC_DTIM_BEACON);
|
||||||
|
|
Loading…
Reference in a new issue