Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258511
b: refs/heads/master
c: a401d2b
h: refs/heads/master
i:
  258509: ec1e904
  258507: fb32930
  258503: f5eaa97
  258495: afa884c
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 20, 2011
1 parent 40e95f7 commit 071b036
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 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: 70126f6105f86366fd97644937ef2180b906b7c8
refs/heads/master: a401d2bb363d942245acdd81c5b5a754011696ee
4 changes: 3 additions & 1 deletion trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3454,7 +3454,9 @@ static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info)
}

for (i = 0; i < IEEE80211_NUM_BANDS; i++)
request->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1;
if (wiphy->bands[i])
request->rates[i] =
(1 << wiphy->bands[i]->n_bitrates) - 1;

if (info->attrs[NL80211_ATTR_SCAN_SUPP_RATES]) {
nla_for_each_nested(attr,
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,8 @@ int cfg80211_wext_siwscan(struct net_device *dev,
}

for (i = 0; i < IEEE80211_NUM_BANDS; i++)
creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1;
if (wiphy->bands[i])
creq->rates[i] = (1 << wiphy->bands[i]->n_bitrates) - 1;

rdev->scan_req = creq;
err = rdev->ops->scan(wiphy, dev, creq);
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/wireless/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ int ieee80211_get_ratemask(struct ieee80211_supported_band *sband,
{
int i, j;

if (!sband)
return -EINVAL;

if (n_rates == 0 || n_rates > NL80211_MAX_SUPP_RATES)
return -EINVAL;

Expand Down

0 comments on commit 071b036

Please sign in to comment.