aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaithili Hinge <maithili@marvell.com>2014-09-30 06:59:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-09-30 13:17:48 -0400
commit8342bdac42dfacd49f44c6ca3cf6dfd58dbc7f93 (patch)
treeab626345e61197a7ce27171133c075ed5275eed6
parent315dd1149b6048cec805667f511726bbe8e5c975 (diff)
mwifiex: add client mac address while configuring keys on GO.
When mwifiex device becomes GO, unicast traffic between client1 and GO stops when client2 connects to GO. Reason behind this was PTK getting overwritten by key_material command for client2 as it did not have client mac address. So, client1 can no more decode GO's ping packets though it responds to its broadcast packets. This patch adds case to check for BSS_ROLE instead of bss_type to set client mac address while configuring keys when device becomes GO. Signed-off-by: Maithili Hinge <maithili@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/mwifiex/sta_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_cmd.c b/drivers/net/wireless/mwifiex/sta_cmd.c
index 225f7498048b..1c2ca291d1f5 100644
--- a/drivers/net/wireless/mwifiex/sta_cmd.c
+++ b/drivers/net/wireless/mwifiex/sta_cmd.c
@@ -938,7 +938,7 @@ mwifiex_cmd_802_11_key_material_v1(struct mwifiex_private *priv,
938 cmd->size = cpu_to_le16(sizeof(key_material->action) + S_DS_GEN 938 cmd->size = cpu_to_le16(sizeof(key_material->action) + S_DS_GEN
939 + key_param_len); 939 + key_param_len);
940 940
941 if (priv->bss_type == MWIFIEX_BSS_TYPE_UAP) { 941 if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) {
942 tlv_mac = (void *)((u8 *)&key_material->key_param_set + 942 tlv_mac = (void *)((u8 *)&key_material->key_param_set +
943 key_param_len); 943 key_param_len);
944 tlv_mac->header.type = 944 tlv_mac->header.type =