aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-02-25 10:27:50 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-03-06 15:30:47 -0500
commit38968d096b9f497e7ec4590b6b80eb8679e3646a (patch)
treebab6f261c69d55a9b3d80e152275611728e24fe7 /drivers/net
parent03e4497ebeaa8011eb0ab0a54496ed6413b9d1a4 (diff)
b43: verify sta_notify mac80211 callback
This helps verify that nothing bad is going on in mac80211, it is unfortunately not possible to implement this generically in mac80211 easily because there we can't assume that we only have a single vif which b43 currently can assume. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index f745308faaad..c93b62fb5f65 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -3835,6 +3835,16 @@ static int b43_op_ibss_beacon_update(struct ieee80211_hw *hw,
3835 return 0; 3835 return 0;
3836} 3836}
3837 3837
3838static void b43_op_sta_notify(struct ieee80211_hw *hw,
3839 struct ieee80211_vif *vif,
3840 enum sta_notify_cmd notify_cmd,
3841 const u8 *addr)
3842{
3843 struct b43_wl *wl = hw_to_b43_wl(hw);
3844
3845 B43_WARN_ON(!vif || wl->vif != vif);
3846}
3847
3838static const struct ieee80211_ops b43_hw_ops = { 3848static const struct ieee80211_ops b43_hw_ops = {
3839 .tx = b43_op_tx, 3849 .tx = b43_op_tx,
3840 .conf_tx = b43_op_conf_tx, 3850 .conf_tx = b43_op_conf_tx,
@@ -3851,6 +3861,7 @@ static const struct ieee80211_ops b43_hw_ops = {
3851 .set_retry_limit = b43_op_set_retry_limit, 3861 .set_retry_limit = b43_op_set_retry_limit,
3852 .set_tim = b43_op_beacon_set_tim, 3862 .set_tim = b43_op_beacon_set_tim,
3853 .beacon_update = b43_op_ibss_beacon_update, 3863 .beacon_update = b43_op_ibss_beacon_update,
3864 .sta_notify = b43_op_sta_notify,
3854}; 3865};
3855 3866
3856/* Hard-reset the chip. Do not call this directly. 3867/* Hard-reset the chip. Do not call this directly.