Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134049
b: refs/heads/master
c: 285256a
h: refs/heads/master
i:
  134047: 17c140f
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jan 29, 2009
1 parent 1ac1399 commit ad0c94d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de27e64e5eb72ff3edcaf5edce2f306ada1f094d
refs/heads/master: 285256a59d790c6a9afe8ec82804a369d956ac06
1 change: 0 additions & 1 deletion trunk/include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ static inline int __deprecated __IEEE80211_CONF_SHORT_SLOT_TIME(void)
#define IEEE80211_CONF_SHORT_SLOT_TIME (__IEEE80211_CONF_SHORT_SLOT_TIME())

struct ieee80211_ht_conf {
bool enabled;
enum nl80211_channel_type channel_type;
};

Expand Down
3 changes: 1 addition & 2 deletions trunk/net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,10 @@ u32 ieee80211_enable_ht(struct ieee80211_sub_if_data *sdata,
}
}

ht_changed = local->hw.conf.ht.enabled != enable_ht ||
ht_changed = conf_is_ht(&local->hw.conf) != enable_ht ||
channel_type != local->hw.conf.ht.channel_type;

local->oper_channel_type = channel_type;
local->hw.conf.ht.enabled = enable_ht;

if (ht_changed)
ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_HT);
Expand Down
10 changes: 0 additions & 10 deletions trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,6 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
channel_type != local->hw.conf.ht.channel_type) {
local->hw.conf.channel = chan;
local->hw.conf.ht.channel_type = channel_type;
switch (channel_type) {
case NL80211_CHAN_NO_HT:
local->hw.conf.ht.enabled = false;
break;
case NL80211_CHAN_HT20:
case NL80211_CHAN_HT40MINUS:
case NL80211_CHAN_HT40PLUS:
local->hw.conf.ht.enabled = true;
break;
}
changed |= IEEE80211_CONF_CHANGE_CHANNEL;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,6 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,

rcu_read_unlock();

local->hw.conf.ht.enabled = false;
local->oper_channel_type = NL80211_CHAN_NO_HT;
config_changed |= IEEE80211_CONF_CHANGE_HT;

Expand Down

0 comments on commit ad0c94d

Please sign in to comment.