mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: connac: accept hw scan request at a time
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 <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -1536,6 +1536,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;
|
||||
|
||||
Reference in New Issue
Block a user