diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /net/mac80211/chan.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'net/mac80211/chan.c')
-rw-r--r-- | net/mac80211/chan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index 32be11e4c4d9..889c3e93e0f4 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c | |||
@@ -11,7 +11,7 @@ __ieee80211_get_channel_mode(struct ieee80211_local *local, | |||
11 | { | 11 | { |
12 | struct ieee80211_sub_if_data *sdata; | 12 | struct ieee80211_sub_if_data *sdata; |
13 | 13 | ||
14 | WARN_ON(!mutex_is_locked(&local->iflist_mtx)); | 14 | lockdep_assert_held(&local->iflist_mtx); |
15 | 15 | ||
16 | list_for_each_entry(sdata, &local->interfaces, list) { | 16 | list_for_each_entry(sdata, &local->interfaces, list) { |
17 | if (sdata == ignore) | 17 | if (sdata == ignore) |
@@ -77,6 +77,9 @@ bool ieee80211_set_channel_type(struct ieee80211_local *local, | |||
77 | switch (tmp->vif.bss_conf.channel_type) { | 77 | switch (tmp->vif.bss_conf.channel_type) { |
78 | case NL80211_CHAN_NO_HT: | 78 | case NL80211_CHAN_NO_HT: |
79 | case NL80211_CHAN_HT20: | 79 | case NL80211_CHAN_HT20: |
80 | if (superchan > tmp->vif.bss_conf.channel_type) | ||
81 | break; | ||
82 | |||
80 | superchan = tmp->vif.bss_conf.channel_type; | 83 | superchan = tmp->vif.bss_conf.channel_type; |
81 | break; | 84 | break; |
82 | case NL80211_CHAN_HT40PLUS: | 85 | case NL80211_CHAN_HT40PLUS: |