diff options
author | David Spinadel <david.spinadel@intel.com> | 2016-09-22 22:16:50 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-09-30 13:19:10 +0200 |
commit | b8676221f00dd5b6018f0fd88cd278f93e11143a (patch) | |
tree | f8e0667b2c0125479b0a72c0ca572c32109d2237 /net/wireless/util.c | |
parent | mac80211: Move ieee802111_tx_dequeue() to later in tx.c (diff) | |
download | linux-b8676221f00dd5b6018f0fd88cd278f93e11143a.tar.xz linux-b8676221f00dd5b6018f0fd88cd278f93e11143a.zip |
cfg80211: Add support for static WEP in the driver
Add support for drivers that implement static WEP internally, i.e.
expose connection keys to the driver in connect flow and don't
upload the keys after the connection.
Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 9e6e2aaa7766..e02141d66b69 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -912,7 +912,7 @@ void cfg80211_upload_connect_keys(struct wireless_dev *wdev) if (!wdev->connect_keys) return; - for (i = 0; i < 4; i++) { + for (i = 0; i < CFG80211_MAX_WEP_KEYS; i++) { if (!wdev->connect_keys->params[i].cipher) continue; if (rdev_add_key(rdev, dev, i, false, NULL, |