projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98678fc
)
wifi: mt76: connac: accept hw scan request at a time
author
Sean Wang
<sean.wang@mediatek.com>
Thu, 10 Nov 2022 21:23:47 +0000
(
05:23
+0800)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 1 Dec 2022 16:29:13 +0000
(17:29 +0100)
The current hw scan cannot accept multiple hw scan requests at a time, we
return the proper error code when the hw scan is still undergoing.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
index 92855d8264d134edf6594b05a5d9f53c86dc1886..6b2ce5fd3e4fe213461779187dbb9328912526d8 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
@@
-1571,6
+1571,9
@@
int mt76_connac_mcu_hw_scan(struct mt76_phy *phy, struct ieee80211_vif *vif,
struct mt76_connac_hw_scan_req *req;
struct sk_buff *skb;
+ if (test_bit(MT76_HW_SCANNING, &phy->state))
+ return -EBUSY;
+
skb = mt76_mcu_msg_alloc(mdev, NULL, sizeof(*req));
if (!skb)
return -ENOMEM;