Browse Source

qcacld-3.0: Remove channel field from ap_new_caps

Remove unused channel field in struct ap_new_caps.

Change-Id: Id2135464b98f6a8864e426a56d5702743bd4aa12
CRs-Fixed: 2492808
Tushnim Bhattacharyya 5 years ago
parent
commit
dfecb8d12c
2 changed files with 1 additions and 5 deletions
  1. 0 2
      core/mac/inc/sir_api.h
  2. 1 3
      core/mac/src/pe/lim/lim_api.c

+ 0 - 2
core/mac/inc/sir_api.h

@@ -1166,8 +1166,6 @@ struct new_bss_info {
 struct ap_new_caps {
 	uint16_t capabilityInfo;
 	struct qdf_mac_addr bssId;
-	uint8_t channelId;
-	uint8_t reserved[3];
 	tSirMacSSid ssId;
 };
 

+ 1 - 3
core/mac/src/pe/lim/lim_api.c

@@ -1693,9 +1693,7 @@ lim_detect_change_in_ap_capabilities(struct mac_context *mac,
 			 (pBeacon->rsnPresent || pBeacon->wpaPresent)) {
 			pe_err("BSS Caps (Privacy) bit 0 in beacon, but WPA or RSN IE present, Ignore Beacon!");
 			return;
-		} else
-			apNewCaps.channelId = wlan_reg_freq_to_chan(
-					mac->pdev, pe_session->curr_op_freq);
+		}
 		qdf_mem_copy((uint8_t *) &apNewCaps.ssId,
 			     (uint8_t *) &pBeacon->ssId,
 			     pBeacon->ssId.length + 1);