diff options
author | Tova Mussai <tova.mussai@intel.com> | 2017-10-29 12:51:11 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-12-11 14:19:21 +0300 |
commit | 9ae3b172e886c851d8cd6a88569025160b485e95 (patch) | |
tree | 70c4bccd947b580e041ee115835647d6c64b5240 /net/wireless | |
parent | c7976f5272486e4ff406014c4b43e2fa3b70b052 (diff) | |
download | linux-9ae3b172e886c851d8cd6a88569025160b485e95.tar.xz |
cfg80211: IBSS: Add support for static WEP in driver for IBSS
Add support for drivers that implement static WEP internally for IBSS.
Add the WEP keys to the IBSS params struct, that will allow the driver
to use the keys in the join flow, and not only after the connection.
Signed-off-by: Tova Mussai <tova.mussai@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/ibss.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c index 413d4f4e6334..a1d10993d08a 100644 --- a/net/wireless/ibss.c +++ b/net/wireless/ibss.c @@ -126,6 +126,11 @@ static int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev, wdev->ibss_fixed = params->channel_fixed; wdev->ibss_dfs_possible = params->userspace_handles_dfs; wdev->chandef = params->chandef; + if (connkeys) { + params->wep_keys = connkeys->params; + params->wep_tx_key = connkeys->def; + } + #ifdef CONFIG_CFG80211_WEXT wdev->wext.ibss.chandef = params->chandef; #endif |