From: Johannes Berg <johannes.berg@xxxxxxxxx> Another remnant of the previous key locking scheme needs to be removed -- this causes a warning otherwise as ieee80211_set_default_mgmt_key will acquire a mutex. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- net/mac80211/cfg.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- wireless-testing.orig/net/mac80211/cfg.c 2010-07-22 12:24:38.000000000 +0200 +++ wireless-testing/net/mac80211/cfg.c 2010-07-22 13:56:19.000000000 +0200 @@ -324,15 +324,10 @@ static int ieee80211_config_default_mgmt struct net_device *dev, u8 key_idx) { - struct ieee80211_sub_if_data *sdata; + struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); - rcu_read_lock(); - - sdata = IEEE80211_DEV_TO_SUB_IF(dev); ieee80211_set_default_mgmt_key(sdata, key_idx); - rcu_read_unlock(); - return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html