brcmfmac: obtain ifp through wdev structure
authorArend van Spriel <[email protected]>
Thu, 11 Sep 2014 20:51:32 +0000 (22:51 +0200)
committerJohn W. Linville <[email protected]>
Mon, 15 Sep 2014 19:09:26 +0000 (15:09 -0400)
commit8f2b45971b32824b830a544ed1d179215770b1eb
treebe4e93ba6b3edb75da0ae6ea947e0f878b6f78de
parentf1d56039b58f6f786450a858b2c8d2459a3382cc
brcmfmac: obtain ifp through wdev structure

For P2P_DEVICE interface the function brcmf_cfg80211_update_proto_addr_mode()
resulted in a crash, because it assumed wdev->netdev would be valid. The
ifp should be obtained through the driver vif structure which contains the
wireless_dev.

Reviewed-by: Hante Meuleman <[email protected]>
Reviewed-by: Franky (Zhenhui) Lin <[email protected]>
Reviewed-by: Daniel (Deognyoun) Kim <[email protected]>
Reviewed-by: Pieter-Paul Giesberts <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c