diff options
author | Eliad Peller <eliad@wizery.com> | 2011-10-16 04:57:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-08 15:53:57 -0500 |
commit | 59034591029e9f3b691fe02ff60938556dba5683 (patch) | |
tree | 287baf9c4e5d0a81948c0f321937ef17a6d96d05 /net/mac80211/iface.c | |
parent | 3a8aea098c8ebe3437d877542d138085be33346c (diff) |
mac80211: call set_wmm_default only for valid vifs
mac80211 calls ieee80211_set_wmm_default (which in turn
calls drv_conf_tx()) for every new interface, including
"internal" ones (e.g. monitor interface, which the low-level
driver doesn't know about).
Limit this call only to valid interfaces.
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 30d73552e9ab..33a974663f79 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -286,6 +286,13 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) | |||
286 | netif_carrier_off(dev); | 286 | netif_carrier_off(dev); |
287 | else | 287 | else |
288 | netif_carrier_on(dev); | 288 | netif_carrier_on(dev); |
289 | |||
290 | /* | ||
291 | * set default queue parameters so drivers don't | ||
292 | * need to initialise the hardware if the hardware | ||
293 | * doesn't start up with sane defaults | ||
294 | */ | ||
295 | ieee80211_set_wmm_default(sdata); | ||
289 | } | 296 | } |
290 | 297 | ||
291 | set_bit(SDATA_STATE_RUNNING, &sdata->state); | 298 | set_bit(SDATA_STATE_RUNNING, &sdata->state); |
@@ -329,15 +336,8 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) | |||
329 | if (coming_up) | 336 | if (coming_up) |
330 | local->open_count++; | 337 | local->open_count++; |
331 | 338 | ||
332 | if (hw_reconf_flags) { | 339 | if (hw_reconf_flags) |
333 | ieee80211_hw_config(local, hw_reconf_flags); | 340 | ieee80211_hw_config(local, hw_reconf_flags); |
334 | /* | ||
335 | * set default queue parameters so drivers don't | ||
336 | * need to initialise the hardware if the hardware | ||
337 | * doesn't start up with sane defaults | ||
338 | */ | ||
339 | ieee80211_set_wmm_default(sdata); | ||
340 | } | ||
341 | 341 | ||
342 | ieee80211_recalc_ps(local, -1); | 342 | ieee80211_recalc_ps(local, -1); |
343 | 343 | ||