Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349755
b: refs/heads/master
c: 3d9646d
h: refs/heads/master
i:
  349753: f7d6e9b
  349751: 7e7928b
v: v3
  • Loading branch information
Johannes Berg committed Feb 11, 2013
1 parent 19ae61a commit c6eddc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: d601cd8d950c85032cefdcda162b8cd2cda363bb
refs/heads/master: 3d9646d0abd02c552f6f15c302b31aa321c2fa8b
6 changes: 3 additions & 3 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -3400,6 +3400,7 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,

ret = 0;

out:
while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef,
IEEE80211_CHAN_DISABLED)) {
if (WARN_ON(chandef->width == NL80211_CHAN_WIDTH_20_NOHT)) {
Expand All @@ -3408,14 +3409,13 @@ ieee80211_determine_chantype(struct ieee80211_sub_if_data *sdata,
goto out;
}

ret = chandef_downgrade(chandef);
ret |= chandef_downgrade(chandef);
}

if (chandef->width != vht_chandef.width)
sdata_info(sdata,
"local regulatory prevented using AP HT/VHT configuration, downgraded\n");
"capabilities/regulatory prevented using AP HT/VHT configuration, downgraded\n");

out:
WARN_ON_ONCE(!cfg80211_chandef_valid(chandef));
return ret;
}
Expand Down

0 comments on commit c6eddc1

Please sign in to comment.