diff options
-rw-r--r-- | drivers/net/wireless/b43/main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index b59166c67626..629c166cc512 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -852,19 +852,16 @@ static void b43_op_update_tkip_key(struct ieee80211_hw *hw, | |||
852 | if (B43_WARN_ON(!modparam_hwtkip)) | 852 | if (B43_WARN_ON(!modparam_hwtkip)) |
853 | return; | 853 | return; |
854 | 854 | ||
855 | mutex_lock(&wl->mutex); | 855 | /* This is only called from the RX path through mac80211, where |
856 | 856 | * our mutex is already locked. */ | |
857 | B43_WARN_ON(!mutex_is_locked(&wl->mutex)); | ||
857 | dev = wl->current_dev; | 858 | dev = wl->current_dev; |
858 | if (!dev || b43_status(dev) < B43_STAT_INITIALIZED) | 859 | B43_WARN_ON(!dev || b43_status(dev) < B43_STAT_INITIALIZED); |
859 | goto out_unlock; | ||
860 | 860 | ||
861 | keymac_write(dev, index, NULL); /* First zero out mac to avoid race */ | 861 | keymac_write(dev, index, NULL); /* First zero out mac to avoid race */ |
862 | 862 | ||
863 | rx_tkip_phase1_write(dev, index, iv32, phase1key); | 863 | rx_tkip_phase1_write(dev, index, iv32, phase1key); |
864 | keymac_write(dev, index, addr); | 864 | keymac_write(dev, index, addr); |
865 | |||
866 | out_unlock: | ||
867 | mutex_unlock(&wl->mutex); | ||
868 | } | 865 | } |
869 | 866 | ||
870 | static void do_key_write(struct b43_wldev *dev, | 867 | static void do_key_write(struct b43_wldev *dev, |