diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-08-03 15:18:21 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-03 15:18:21 +0200 |
commit | a5d5a914770a81a1f775be2ee35b9fa8fd19d381 (patch) | |
tree | ed07597966e91e3903faf305d69a2c5e1d109b91 /net | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
parent | iwlagn: 5000 do not support idle mode (diff) | |
download | linux-a5d5a914770a81a1f775be2ee35b9fa8fd19d381.tar.xz linux-a5d5a914770a81a1f775be2ee35b9fa8fd19d381.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 28d2aa109bee..e83e7fee3bc0 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -3464,7 +3464,7 @@ static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info) tmp) { enum ieee80211_band band = nla_type(attr); - if (band < 0 || band > IEEE80211_NUM_BANDS) { + if (band < 0 || band >= IEEE80211_NUM_BANDS) { err = -EINVAL; goto out_free; } |