Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351771
b: refs/heads/master
c: 21add82
h: refs/heads/master
i:
  351769: eae40b1
  351767: 7718474
v: v3
  • Loading branch information
Johannes Berg committed Jan 3, 2013
1 parent 3e227f5 commit 104182d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c06ef9831c78648f719a174e4598ae2600b0cf7
refs/heads/master: 21add825f90a50407e0121833c8b7cd2c071c478
15 changes: 15 additions & 0 deletions trunk/net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ void ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata,
IEEE80211_HT_CAP_SGI_20 |
IEEE80211_HT_CAP_SGI_40 |
IEEE80211_HT_CAP_DSSSCCK40));

/* Unset 40 MHz if we're not using a 40 MHz channel */
switch (sdata->vif.bss_conf.chandef.width) {
case NL80211_CHAN_WIDTH_20_NOHT:
case NL80211_CHAN_WIDTH_20:
ht_cap->cap &= ~IEEE80211_HT_CAP_SGI_40;
ht_cap->cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
break;
case NL80211_CHAN_WIDTH_40:
case NL80211_CHAN_WIDTH_80:
case NL80211_CHAN_WIDTH_80P80:
case NL80211_CHAN_WIDTH_160:
break;
}

/*
* The STBC bits are asymmetric -- if we don't have
* TX then mask out the peer's RX and vice versa.
Expand Down

0 comments on commit 104182d

Please sign in to comment.