]> Pileus Git - ~andy/linux/blobdiff - net/wireless/nl80211.c
TOMOYO: Allow specifying domain transition preference.
[~andy/linux] / net / wireless / nl80211.c
index 28d2aa109beecbaa8d5ef97890142a16e134cbad..e83e7fee3bc032def174d7741e6e419d693d2401 100644 (file)
@@ -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;
                        }