From: Arend van Spriel Date: Thu, 11 Sep 2014 20:51:32 +0000 (+0200) Subject: brcmfmac: obtain ifp through wdev structure X-Git-Tag: fixes-for-v3.18-merge-window~87^2~17^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f2b45971b32824b830a544ed1d179215770b1eb;p=pandora-kernel.git 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 Reviewed-by: Franky (Zhenhui) Lin Reviewed-by: Daniel (Deognyoun) Kim Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed