mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
e0e2effff5
commit
b8676221f0
7 changed files with 24 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue