351-0023-brcmfmac-add-missing-break-when-deleting-P2P_DEVICE.patch 919 B

123456789101112131415161718192021222324252627
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Date: Sun, 19 Jun 2016 01:55:57 +0200
  3. Subject: [PATCH] brcmfmac: add missing break when deleting P2P_DEVICE
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. We obviously don't want to fall through in that switch. With this change
  8. 1) We wait for event (triggered by p2p_disc) as expected
  9. 2) We remove interface manually on timeout
  10. 3) We return 0 on success instead of -ENOTSUPP
  11. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  12. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  13. ---
  14. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
  15. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
  16. @@ -2263,6 +2263,8 @@ int brcmf_p2p_del_vif(struct wiphy *wiph
  17. return 0;
  18. brcmf_p2p_cancel_remain_on_channel(vif->ifp);
  19. brcmf_p2p_deinit_discovery(p2p);
  20. + break;
  21. +
  22. default:
  23. return -ENOTSUPP;
  24. }