mwifiex: do not process mgmt rx on uninitialized interface
authorAvinash Patil <patila@marvell.com>
Wed, 11 Feb 2015 17:42:25 +0000 (23:12 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 27 Feb 2015 08:08:44 +0000 (10:08 +0200)
commit7521ce6eb2d3650a04ac7a1d176607ae9441826a
tree6b1269ee6050ad8e090fed40c1c7369212f9898f
parent04c7b363c9f7b05cb1bb94e14afbdd3661f9dd61
mwifiex: do not process mgmt rx on uninitialized interface

This patch fixes a crash which was happening because of RX of
management frames on uninitialzed interface. Now we drop management
frames for interfaces where cfg80211 has not registered any management
subtype reception or interface has no NL80211 iftype set.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/util.c