qcacld-3.0: Rename hdd_ap_ctx uBCStaId field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field uBCStaId in struct hdd_ap_ctx.
Change-Id: Id23184e2daa074016672ec69cf46261ae604f0c5
CRs-Fixed: 2134917
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 242c935..05328b4 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -338,7 +338,7 @@
* starting phase. SAP will return the station ID
* used for BC/MC traffic.
*/
- STAId = ap_ctx->uBCStaId;
+ STAId = ap_ctx->broadcast_sta_id;
} else {
if (QDF_STATUS_SUCCESS !=
hdd_softap_get_sta_id(adapter,
@@ -1005,11 +1005,11 @@
ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);
hdd_ctx->sta_to_adapter[WLAN_RX_BCMC_STA_ID] = adapter;
- hdd_ctx->sta_to_adapter[ap_ctx->uBCStaId] = adapter;
+ hdd_ctx->sta_to_adapter[ap_ctx->broadcast_sta_id] = adapter;
qdf_status =
hdd_softap_register_sta(adapter, false, fPrivacyBit,
- (WLAN_HDD_GET_AP_CTX_PTR(adapter))->
- uBCStaId, 0, 1, &broadcastMacAddr, 0);
+ ap_ctx->broadcast_sta_id,
+ 0, 1, &broadcastMacAddr, 0);
return qdf_status;
}
@@ -1022,9 +1022,10 @@
*/
QDF_STATUS hdd_softap_deregister_bc_sta(struct hdd_adapter *adapter)
{
- return hdd_softap_deregister_sta(adapter,
- (WLAN_HDD_GET_AP_CTX_PTR(adapter))->
- uBCStaId);
+ struct hdd_ap_ctx *ap_ctx;
+
+ ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);
+ return hdd_softap_deregister_sta(adapter, ap_ctx->broadcast_sta_id);
}
/**
@@ -1048,8 +1049,11 @@
qdf_status = hdd_softap_deregister_bc_sta(adapter);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
+ struct hdd_ap_ctx *ap_ctx;
+
+ ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);
hdd_err("Failed to deregister BC sta Id %d",
- (WLAN_HDD_GET_AP_CTX_PTR(adapter))->uBCStaId);
+ ap_ctx->broadcast_sta_id);
}
for (staId = 0; staId < WLAN_MAX_STA_COUNT; staId++) {