File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
drivers/net/wireless/mediatek/mt76 Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1011,6 +1011,7 @@ void mt76_dma_cleanup(struct mt76_dev *dev)
1011
1011
int i ;
1012
1012
1013
1013
mt76_worker_disable (& dev -> tx_worker );
1014
+ napi_disable (& dev -> tx_napi );
1014
1015
netif_napi_del (& dev -> tx_napi );
1015
1016
1016
1017
for (i = 0 ; i < ARRAY_SIZE (dev -> phys ); i ++ ) {
Original file line number Diff line number Diff line change @@ -1924,14 +1924,14 @@ mt7925_mcu_sta_cmd(struct mt76_phy *phy,
1924
1924
mt7925_mcu_sta_mld_tlv (skb , info -> vif , info -> link_sta -> sta );
1925
1925
mt7925_mcu_sta_eht_mld_tlv (skb , info -> vif , info -> link_sta -> sta );
1926
1926
}
1927
-
1928
- mt7925_mcu_sta_hdr_trans_tlv (skb , info -> vif , info -> link_sta );
1929
1927
}
1930
1928
1931
1929
if (!info -> enable ) {
1932
1930
mt7925_mcu_sta_remove_tlv (skb );
1933
1931
mt76_connac_mcu_add_tlv (skb , STA_REC_MLD_OFF ,
1934
1932
sizeof (struct tlv ));
1933
+ } else {
1934
+ mt7925_mcu_sta_hdr_trans_tlv (skb , info -> vif , info -> link_sta );
1935
1935
}
1936
1936
1937
1937
return mt76_mcu_skb_send_msg (dev , skb , info -> cmd , true);
Original file line number Diff line number Diff line change @@ -1354,10 +1354,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
1354
1354
hw -> wiphy -> software_iftypes |= BIT (NL80211_IFTYPE_MONITOR );
1355
1355
1356
1356
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 );
1359
1360
if (!local -> int_scan_req )
1360
1361
return - ENOMEM ;
1362
+ local -> int_scan_req -> n_channels = channels ;
1361
1363
1362
1364
eth_broadcast_addr (local -> int_scan_req -> bssid );
1363
1365
You can’t perform that action at this time.
0 commit comments