Skip to content

Commit 3933536

Browse files
committed
Johannes Berg says: ==================== Couple of stragglers: - mac80211: fix syzbot/ubsan in scan counted-by - mt76: fix NAPI handling on driver remove - mt67: fix multicast/ipv6 receive * tag 'wireless-2025-05-15' of https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless: wifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request wifi: mt76: mt7925: fix missing hdr_trans_tlv command for broadcast wtbl wifi: mt76: disable napi on driver removal ==================== Link: https://patch.msgid.link/20250515121749.61912-4-johannes@sipsolutions.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 325eb21 + 943aeda commit 3933536

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

drivers/net/wireless/mediatek/mt76/dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ void mt76_dma_cleanup(struct mt76_dev *dev)
10111011
int i;
10121012

10131013
mt76_worker_disable(&dev->tx_worker);
1014+
napi_disable(&dev->tx_napi);
10141015
netif_napi_del(&dev->tx_napi);
10151016

10161017
for (i = 0; i < ARRAY_SIZE(dev->phys); i++) {

drivers/net/wireless/mediatek/mt76/mt7925/mcu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,14 +1924,14 @@ mt7925_mcu_sta_cmd(struct mt76_phy *phy,
19241924
mt7925_mcu_sta_mld_tlv(skb, info->vif, info->link_sta->sta);
19251925
mt7925_mcu_sta_eht_mld_tlv(skb, info->vif, info->link_sta->sta);
19261926
}
1927-
1928-
mt7925_mcu_sta_hdr_trans_tlv(skb, info->vif, info->link_sta);
19291927
}
19301928

19311929
if (!info->enable) {
19321930
mt7925_mcu_sta_remove_tlv(skb);
19331931
mt76_connac_mcu_add_tlv(skb, STA_REC_MLD_OFF,
19341932
sizeof(struct tlv));
1933+
} else {
1934+
mt7925_mcu_sta_hdr_trans_tlv(skb, info->vif, info->link_sta);
19351935
}
19361936

19371937
return mt76_mcu_skb_send_msg(dev, skb, info->cmd, true);

net/mac80211/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,10 +1354,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
13541354
hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_MONITOR);
13551355

13561356

1357-
local->int_scan_req = kzalloc(sizeof(*local->int_scan_req) +
1358-
sizeof(void *) * channels, GFP_KERNEL);
1357+
local->int_scan_req = kzalloc(struct_size(local->int_scan_req,
1358+
channels, channels),
1359+
GFP_KERNEL);
13591360
if (!local->int_scan_req)
13601361
return -ENOMEM;
1362+
local->int_scan_req->n_channels = channels;
13611363

13621364
eth_broadcast_addr(local->int_scan_req->bssid);
13631365

0 commit comments

Comments
 (0)