]> git.karo-electronics.de Git - linux-beck.git/commitdiff
brcmfmac: add missing break when deleting P2P_DEVICE
authorRafał Miłecki <zajec5@gmail.com>
Sat, 18 Jun 2016 23:55:57 +0000 (01:55 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 29 Jun 2016 16:01:57 +0000 (19:01 +0300)
We obviously don't want to fall through in that switch. With this change
1) We wait for event (triggered by p2p_disc) as expected
2) We remove interface manually on timeout
3) We return 0 on success instead of -ENOTSUPP

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c

index 426ff0596526c705aed2115fc9c6aa06bf3efcbc..f6241fd655af3cfed200af8f516607666f584937 100644 (file)
@@ -2261,6 +2261,8 @@ int brcmf_p2p_del_vif(struct wiphy *wiphy, struct wireless_dev *wdev)
                        return 0;
                brcmf_p2p_cancel_remain_on_channel(vif->ifp);
                brcmf_p2p_deinit_discovery(p2p);
+               break;
+
        default:
                return -ENOTSUPP;
        }