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)
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

Simple merge