mac80211 hwsim: verify vif pointers
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 11 Sep 2008 00:16:36 +0000 (02:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2008 20:48:23 +0000 (16:48 -0400)
commit8aa21e6fd703cb3fed66ac07dcbcb861f00cf6d6
treeff237c8212a514b87a897161b5dab883528e7bf7
parent7a725f73403e874ec52c58741e9b98cd604dbd03
mac80211 hwsim: verify vif pointers

mac80211-hwsim is a debugging tool for mac80211, and as such
it can very well verify that mac80211 isn't passing junk to
drivers, especially the vif pointer is prone to this because
for vlan interfaces the AP interface pointer needs to be passed.
This makes mac80211-hwsim add a magic cookie to the private vif
area and verify it whenever an operation is called that gets a
vif pointer.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c