[PATCH v2 2/2] wifi: mt76: mt7925: add RNR scan support for 6GHz
Felix Fietkau
nbd at nbd.name
Thu May 22 03:49:55 PDT 2025
On 21.03.25 02:38, Mingyen Hsieh wrote:
> From: Ming Yen Hsieh <mingyen.hsieh at mediatek.com>
>
> Enhance the mt7925 to include RNR scan support. It adds
> the necessary RNR information to the scan command.
>
> Signed-off-by: Ming Yen Hsieh <mingyen.hsieh at mediatek.com>
> ---
> v2:
> - use '= {}' to replace the '= {0}' for short_ssid array.
> - align with the open paranthesis for crc32_le.
> - use ether_addr_copy() to replace the memcpy of bssid.
> ---
> .../net/wireless/mediatek/mt76/mt7925/mcu.c | 36 ++++++++++++++++---
> .../net/wireless/mediatek/mt76/mt7925/mcu.h | 17 +++++----
> 2 files changed, 41 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
> index 243adace8799..22686faca1af 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
> @@ -3078,7 +3079,11 @@ int mt7925_mcu_hw_scan(struct mt76_phy *phy, struct ieee80211_vif *vif,
> for (i = 0; i < sreq->n_ssids; i++) {
> if (!sreq->ssids[i].ssid_len)
> continue;
> + if (i > MT7925_RNR_SCAN_MAX_BSSIDS)
> + break;
>
> + short_ssid[i] = ~crc32_le(~0, sreq->ssids[i].ssid,
> + sreq->ssids[i].ssid_len);
I had to remove this variable due to a unused-but-set warning. I'm not
sure if the contents of it should have been stored somewhere in the MCU
message, or if this was something that ended up not being necessary.
Please review and send a follow-up fix if needed.
- Felix
More information about the Linux-mediatek
mailing list