Commit ac4acdb7 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville

wil6210: send connect request IEs to FW also for non-secure connection

Driver is sending connect request IEs to FW only for secure connection and
ignores them for non-secure connection.
This is fixed by always sending the IEs to FW upon connect request
Signed-off-by: default avatarDedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ec81b5ad
...@@ -379,22 +379,22 @@ static int wil_cfg80211_connect(struct wiphy *wiphy, ...@@ -379,22 +379,22 @@ static int wil_cfg80211_connect(struct wiphy *wiphy,
sme->ie_len); sme->ie_len);
goto out; goto out;
} }
/* /* For secure assoc, send WMI_DELETE_CIPHER_KEY_CMD */
* For secure assoc, send:
* (1) WMI_DELETE_CIPHER_KEY_CMD
* (2) WMI_SET_APPIE_CMD
*/
rc = wmi_del_cipher_key(wil, 0, bss->bssid); rc = wmi_del_cipher_key(wil, 0, bss->bssid);
if (rc) { if (rc) {
wil_err(wil, "WMI_DELETE_CIPHER_KEY_CMD failed\n"); wil_err(wil, "WMI_DELETE_CIPHER_KEY_CMD failed\n");
goto out; goto out;
} }
/* WMI_SET_APPIE_CMD */ }
rc = wmi_set_ie(wil, WMI_FRAME_ASSOC_REQ, sme->ie_len, sme->ie);
if (rc) { /* WMI_SET_APPIE_CMD. ie may contain rsn info as well as other info
wil_err(wil, "WMI_SET_APPIE_CMD failed\n"); * elements. Send it also in case it's empty, to erase previously set
goto out; * ies in FW.
} */
rc = wmi_set_ie(wil, WMI_FRAME_ASSOC_REQ, sme->ie_len, sme->ie);
if (rc) {
wil_err(wil, "WMI_SET_APPIE_CMD failed\n");
goto out;
} }
/* WMI_CONNECT_CMD */ /* WMI_CONNECT_CMD */
......
...@@ -972,6 +972,8 @@ int wmi_set_ie(struct wil6210_priv *wil, u8 type, u16 ie_len, const void *ie) ...@@ -972,6 +972,8 @@ int wmi_set_ie(struct wil6210_priv *wil, u8 type, u16 ie_len, const void *ie)
if (!cmd) if (!cmd)
return -ENOMEM; return -ENOMEM;
if (!ie)
ie_len = 0;
cmd->mgmt_frm_type = type; cmd->mgmt_frm_type = type;
/* BUG: FW API define ieLen as u8. Will fix FW */ /* BUG: FW API define ieLen as u8. Will fix FW */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment