|
@@ -1434,7 +1434,7 @@ static void hdd_send_association_event(struct net_device *dev,
|
|
|
static void hdd_conn_remove_connect_info(hdd_station_ctx_t *pHddStaCtx)
|
|
|
{
|
|
|
/* Remove staId, bssId and peerMacAddress */
|
|
|
- pHddStaCtx->conn_info.staId[0] = 0;
|
|
|
+ pHddStaCtx->conn_info.staId[0] = HDD_WLAN_INVALID_STA_ID;
|
|
|
qdf_mem_zero(&pHddStaCtx->conn_info.bssId, QDF_MAC_ADDR_SIZE);
|
|
|
qdf_mem_zero(&pHddStaCtx->conn_info.peerMacAddress[0],
|
|
|
QDF_MAC_ADDR_SIZE);
|
|
@@ -1712,7 +1712,8 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter,
|
|
|
/* set the staid and peer mac as 0, all other
|
|
|
* reset are done in hdd_connRemoveConnectInfo.
|
|
|
*/
|
|
|
- pHddStaCtx->conn_info.staId[i] = 0;
|
|
|
+ pHddStaCtx->conn_info.staId[i] =
|
|
|
+ HDD_WLAN_INVALID_STA_ID;
|
|
|
qdf_mem_zero(&pHddStaCtx->conn_info.peerMacAddress[i],
|
|
|
sizeof(struct qdf_mac_addr));
|
|
|
if (sta_id < (WLAN_MAX_STA_COUNT + 3))
|
|
@@ -3311,7 +3312,7 @@ bool hdd_save_peer(hdd_station_ctx_t *sta_ctx, uint8_t sta_id,
|
|
|
int idx;
|
|
|
|
|
|
for (idx = 0; idx < SIR_MAX_NUM_STA_IN_IBSS; idx++) {
|
|
|
- if (0 == sta_ctx->conn_info.staId[idx]) {
|
|
|
+ if (HDD_WLAN_INVALID_STA_ID == sta_ctx->conn_info.staId[idx]) {
|
|
|
hdd_debug("adding peer: %pM, sta_id: %d, at idx: %d",
|
|
|
peer_mac_addr, sta_id, idx);
|
|
|
sta_ctx->conn_info.staId[idx] = sta_id;
|
|
@@ -3337,7 +3338,7 @@ void hdd_delete_peer(hdd_station_ctx_t *sta_ctx, uint8_t sta_id)
|
|
|
|
|
|
for (i = 0; i < SIR_MAX_NUM_STA_IN_IBSS; i++) {
|
|
|
if (sta_id == sta_ctx->conn_info.staId[i]) {
|
|
|
- sta_ctx->conn_info.staId[i] = 0;
|
|
|
+ sta_ctx->conn_info.staId[i] = HDD_WLAN_INVALID_STA_ID;
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -3363,7 +3364,8 @@ static bool roam_remove_ibss_station(hdd_adapter_t *pAdapter, uint8_t staId)
|
|
|
|
|
|
for (idx = 0; idx < MAX_PEERS; idx++) {
|
|
|
if (staId == pHddStaCtx->conn_info.staId[idx]) {
|
|
|
- pHddStaCtx->conn_info.staId[idx] = 0;
|
|
|
+ pHddStaCtx->conn_info.staId[idx] =
|
|
|
+ HDD_WLAN_INVALID_STA_ID;
|
|
|
|
|
|
qdf_zero_macaddr(&pHddStaCtx->conn_info.
|
|
|
peerMacAddress[idx]);
|
|
@@ -3406,7 +3408,8 @@ static bool roam_remove_ibss_station(hdd_adapter_t *pAdapter, uint8_t staId)
|
|
|
&pHddStaCtx->conn_info.
|
|
|
peerMacAddress[valid_idx]);
|
|
|
|
|
|
- pHddStaCtx->conn_info.staId[valid_idx] = 0;
|
|
|
+ pHddStaCtx->conn_info.staId[valid_idx] =
|
|
|
+ HDD_WLAN_INVALID_STA_ID;
|
|
|
qdf_zero_macaddr(&pHddStaCtx->conn_info.
|
|
|
peerMacAddress[valid_idx]);
|
|
|
}
|