aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00dev.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2009-08-18 14:33:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 11:36:05 -0400
commitd904dc17495581254442b7fd054e267f2605c8ec (patch)
treed314c2e2be22fb2acdd61913d097a7b0abca2cf8 /drivers/net/wireless/rt2x00/rt2x00dev.c
parentafa620429ac6a636246f85d97cf205d6533e7fcb (diff)
rt2x00: bss_info_changed() callback is allowed to sleep
The bss_info_changed() callback function no longer needs to be atomic. Remove the scheduled work structure and call into the driver directly. Additionaly this makes the DRIVER_REQUIRE_SCHEDULED flag redundant so it can be removed. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 16b560a661e3..3f8c70ebe9ad 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -123,7 +123,6 @@ static void rt2x00lib_intf_scheduled_iter(void *data, u8 *mac,
123{ 123{
124 struct rt2x00_dev *rt2x00dev = data; 124 struct rt2x00_dev *rt2x00dev = data;
125 struct rt2x00_intf *intf = vif_to_intf(vif); 125 struct rt2x00_intf *intf = vif_to_intf(vif);
126 struct ieee80211_bss_conf conf;
127 int delayed_flags; 126 int delayed_flags;
128 127
129 /* 128 /*
@@ -133,7 +132,6 @@ static void rt2x00lib_intf_scheduled_iter(void *data, u8 *mac,
133 */ 132 */
134 spin_lock(&intf->lock); 133 spin_lock(&intf->lock);
135 134
136 memcpy(&conf, &vif->bss_conf, sizeof(conf));
137 delayed_flags = intf->delayed_flags; 135 delayed_flags = intf->delayed_flags;
138 intf->delayed_flags = 0; 136 intf->delayed_flags = 0;
139 137
@@ -150,12 +148,6 @@ static void rt2x00lib_intf_scheduled_iter(void *data, u8 *mac,
150 148
151 if (delayed_flags & DELAYED_UPDATE_BEACON) 149 if (delayed_flags & DELAYED_UPDATE_BEACON)
152 rt2x00queue_update_beacon(rt2x00dev, vif, true); 150 rt2x00queue_update_beacon(rt2x00dev, vif, true);
153
154 if (delayed_flags & DELAYED_CONFIG_ERP)
155 rt2x00lib_config_erp(rt2x00dev, intf, &conf);
156
157 if (delayed_flags & DELAYED_LED_ASSOC)
158 rt2x00leds_led_assoc(rt2x00dev, !!rt2x00dev->intf_associated);
159} 151}
160 152
161static void rt2x00lib_intf_scheduled(struct work_struct *work) 153static void rt2x00lib_intf_scheduled(struct work_struct *work)