mac80211: fix crash with P2P Device returning action frames
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Mar 2013 12:22:05 +0000 (13:22 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Mar 2013 07:37:50 +0000 (09:37 +0200)
commit07e5a5f5ab7474589c15fc5d88e4f7fc43979530
tree27f08edd2f94fd63390a136c15386c574ce1a83a
parent1345ee6a6d90813f972379fad8b75f17026fc8b2
mac80211: fix crash with P2P Device returning action frames

If a P2P Device interface receives an unhandled action
frame, we attempt to return it. This crashes because it
doesn't have a channel context. Fix the crash by using
status->band and properly mark the return frame as an
off-channel frame.

Reported-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c