瀏覽代碼

qcacld-3.0: update default wep index for group key

For encryption mode is WEP40 or WEP104, the default key index should
be set. if not set, the group key index will be zero always.

Change-Id: I3f2dae9d7b6cd4fbb7aa2882e6a5e89cf759cd11
CRs-Fixed: 2065988
gaolez 7 年之前
父節點
當前提交
8a61fd27a0
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      core/wma/src/wma_mgmt.c

+ 5 - 0
core/wma/src/wma_mgmt.c

@@ -1839,6 +1839,11 @@ void wma_set_bsskey(tp_wma_handle wma_handle, tpSetBssKeyParams key_info)
 	     key_info->encType == eSIR_ED_WEP104)) {
 		wma_read_cfg_wepkey(wma_handle, key_info->key,
 				    &def_key_idx, &key_info->numKeys);
+	} else if ((key_info->encType == eSIR_ED_WEP40) ||
+		   (key_info->encType == eSIR_ED_WEP104)) {
+		struct wma_txrx_node *intf =
+			&wma_handle->interfaces[key_info->smesessionId];
+		key_params.def_key_idx = intf->wep_default_key_idx;
 	}
 
 	for (i = 0; i < key_info->numKeys; i++) {