diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-09 06:56:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:39 -0400 |
commit | 5825fe100d654fff89aa67a1e202af1f8a7f0ad0 (patch) | |
tree | 09c9b6f7e1f51a34fcc5d5030d6339b642e41057 /net/mac80211/main.c | |
parent | 3110bef78cb4282c58245bc8fd6d95d9ccb19749 (diff) |
mac80211: initialise queue QoS parameters at hw start
When hardware is started it might be in a confused state with
respect to queue QoS parameters. This patch changes mac80211
to set sane defaults right after the hardware is brought up.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index f90254a5948e..6a7f4fae18c2 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -399,8 +399,15 @@ static int ieee80211_open(struct net_device *dev) | |||
399 | atomic_inc(&local->iff_promiscs); | 399 | atomic_inc(&local->iff_promiscs); |
400 | 400 | ||
401 | local->open_count++; | 401 | local->open_count++; |
402 | if (need_hw_reconfig) | 402 | if (need_hw_reconfig) { |
403 | ieee80211_hw_config(local); | 403 | ieee80211_hw_config(local); |
404 | /* | ||
405 | * set default queue parameters so drivers don't | ||
406 | * need to initialise the hardware if the hardware | ||
407 | * doesn't start up with sane defaults | ||
408 | */ | ||
409 | ieee80211_set_wmm_default(sdata); | ||
410 | } | ||
404 | 411 | ||
405 | /* | 412 | /* |
406 | * ieee80211_sta_work is disabled while network interface | 413 | * ieee80211_sta_work is disabled while network interface |