aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/wmi.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-08-30 14:57:52 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-08-31 03:13:00 -0400
commit9a5b13182cc10d693c55a5c02d753e54514b9bfc (patch)
tree8f8e42821b908d519bb587181cfe5a889b5dd92e /drivers/net/wireless/ath/ath6kl/wmi.c
parent3c774bbab78435e349de2c88fc6e054716f8f2ea (diff)
ath6kl: Delay initial group key setup in AP mode
The target is not ready to accept addkey commands until the connect event has been delivered, so delay these operations for the initial GTK. In addition, properly set interface connected and mark netdev ready when the AP mode setup has been completed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/wmi.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/wmi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c
index 0114a7136977..d587f84b41cf 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.c
+++ b/drivers/net/wireless/ath/ath6kl/wmi.c
@@ -1764,6 +1764,10 @@ int ath6kl_wmi_addkey_cmd(struct wmi *wmi, u8 key_index,
1764 struct wmi_add_cipher_key_cmd *cmd; 1764 struct wmi_add_cipher_key_cmd *cmd;
1765 int ret; 1765 int ret;
1766 1766
1767 ath6kl_dbg(ATH6KL_DBG_WMI, "addkey cmd: key_index=%u key_type=%d "
1768 "key_usage=%d key_len=%d key_op_ctrl=%d\n",
1769 key_index, key_type, key_usage, key_len, key_op_ctrl);
1770
1767 if ((key_index > WMI_MAX_KEY_INDEX) || (key_len > WMI_MAX_KEY_LEN) || 1771 if ((key_index > WMI_MAX_KEY_INDEX) || (key_len > WMI_MAX_KEY_LEN) ||
1768 (key_material == NULL)) 1772 (key_material == NULL))
1769 return -EINVAL; 1773 return -EINVAL;