Skip to content

Commit e6faada

Browse files
Amitkumar Karwarlinvjw
authored andcommitted
mwifiex: fix regression in WEP security mode
Htcapinfo is unnecessarily sent in assoc request in WEP security due to a regression introduced by commit 2be50b8 (mwifiex: remove redundant encryption_mode mapping). The issue is fixed in this patch. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 4fc5401 commit e6faada

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/wireless/mwifiex/cfg80211.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid,
960960
ret = mwifiex_set_gen_ie(priv, sme->ie, sme->ie_len);
961961

962962
if (sme->key) {
963-
if (mwifiex_is_alg_wep(0) | mwifiex_is_alg_wep(0)) {
963+
if (mwifiex_is_alg_wep(priv->sec_info.encryption_mode)) {
964964
dev_dbg(priv->adapter->dev,
965965
"info: setting wep encryption"
966966
" with key len %d\n", sme->key_len);

0 commit comments

Comments
 (0)