|
@@ -976,13 +976,13 @@ hdd_conn_save_connect_info(struct hdd_adapter *adapter,
|
|
|
|
|
|
/*
|
|
|
* Save the Station ID for this station from
|
|
|
- * the 'Roam Info'. For IBSS mode, staId is
|
|
|
+ * the 'Roam Info'. For IBSS mode, staid is
|
|
|
* assigned in NEW_PEER_IND. For reassoc,
|
|
|
* the staID doesn't change and it may be invalid
|
|
|
* in this structure so no change here.
|
|
|
*/
|
|
|
if (!roam_info->fReassocReq) {
|
|
|
- sta_ctx->conn_info.staId[0] =
|
|
|
+ sta_ctx->conn_info.staid[0] =
|
|
|
roam_info->staId;
|
|
|
}
|
|
|
} else if (eCSR_BSS_TYPE_IBSS == bss_type) {
|
|
@@ -1533,8 +1533,8 @@ static void hdd_send_association_event(struct net_device *dev,
|
|
|
*/
|
|
|
static void hdd_conn_remove_connect_info(struct hdd_station_ctx *sta_ctx)
|
|
|
{
|
|
|
- /* Remove staId, bssid and peerMacAddress */
|
|
|
- sta_ctx->conn_info.staId[0] = HDD_WLAN_INVALID_STA_ID;
|
|
|
+ /* Remove staid, bssid and peerMacAddress */
|
|
|
+ sta_ctx->conn_info.staid[0] = HDD_WLAN_INVALID_STA_ID;
|
|
|
qdf_mem_zero(&sta_ctx->conn_info.bssid, QDF_MAC_ADDR_SIZE);
|
|
|
qdf_mem_zero(&sta_ctx->conn_info.peerMacAddress[0],
|
|
|
QDF_MAC_ADDR_SIZE);
|
|
@@ -1727,10 +1727,10 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
|
|
|
WLAN_CONTROL_PATH);
|
|
|
|
|
|
if (ucfg_ipa_is_enabled() &&
|
|
|
- (sta_ctx->conn_info.staId[0] != HDD_WLAN_INVALID_STA_ID))
|
|
|
+ (sta_ctx->conn_info.staid[0] != HDD_WLAN_INVALID_STA_ID))
|
|
|
ucfg_ipa_wlan_evt(hdd_ctx->pdev, adapter->dev,
|
|
|
adapter->device_mode,
|
|
|
- sta_ctx->conn_info.staId[0],
|
|
|
+ sta_ctx->conn_info.staid[0],
|
|
|
adapter->vdev_id,
|
|
|
WLAN_IPA_STA_DISCONNECT,
|
|
|
sta_ctx->conn_info.bssid.bytes);
|
|
@@ -1829,9 +1829,9 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
|
|
|
/* Clear all the peer sta register with TL. */
|
|
|
for (i = 0; i < MAX_PEERS; i++) {
|
|
|
if (HDD_WLAN_INVALID_STA_ID ==
|
|
|
- sta_ctx->conn_info.staId[i])
|
|
|
+ sta_ctx->conn_info.staid[i])
|
|
|
continue;
|
|
|
- sta_id = sta_ctx->conn_info.staId[i];
|
|
|
+ sta_id = sta_ctx->conn_info.staid[i];
|
|
|
hdd_debug("Deregister StaID %d", sta_id);
|
|
|
vstatus = hdd_roam_deregister_sta(adapter, sta_id);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(vstatus)) {
|
|
@@ -1842,7 +1842,7 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
|
|
|
/* set the staid and peer mac as 0, all other
|
|
|
* reset are done in hdd_connRemoveConnectInfo.
|
|
|
*/
|
|
|
- sta_ctx->conn_info.staId[i] =
|
|
|
+ sta_ctx->conn_info.staid[i] =
|
|
|
HDD_WLAN_INVALID_STA_ID;
|
|
|
qdf_mem_zero(&sta_ctx->conn_info.peerMacAddress[i],
|
|
|
sizeof(struct qdf_mac_addr));
|
|
@@ -1852,7 +1852,7 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
|
|
|
hdd_debug("invalid sta_id %d", sta_id);
|
|
|
}
|
|
|
} else {
|
|
|
- sta_id = sta_ctx->conn_info.staId[0];
|
|
|
+ sta_id = sta_ctx->conn_info.staid[0];
|
|
|
hdd_debug("roam_result: %d", roam_result);
|
|
|
|
|
|
/* clear scan cache for Link Lost */
|
|
@@ -2166,7 +2166,7 @@ QDF_STATUS hdd_roam_register_sta(struct hdd_adapter *adapter,
|
|
|
hdd_objmgr_set_peer_mlme_auth_state(adapter->vdev, true);
|
|
|
} else {
|
|
|
hdd_debug("ULA auth StaId= %d. Changing TL state to CONNECTED at Join time",
|
|
|
- sta_ctx->conn_info.staId[0]);
|
|
|
+ sta_ctx->conn_info.staid[0]);
|
|
|
qdf_status =
|
|
|
hdd_change_peer_state(adapter, staDesc.sta_id,
|
|
|
OL_TXRX_PEER_STATE_CONN,
|
|
@@ -2504,7 +2504,7 @@ static int hdd_change_sta_state_authenticated(struct hdd_adapter *adapter,
|
|
|
if (QDF_IBSS_MODE == adapter->device_mode)
|
|
|
staid = hdd_get_ibss_peer_staid(hddstactx, roaminfo);
|
|
|
else
|
|
|
- staid = hddstactx->conn_info.staId[0];
|
|
|
+ staid = hddstactx->conn_info.staid[0];
|
|
|
|
|
|
hdd_debug("Changing Peer state to AUTHENTICATED for StaId = %d", staid);
|
|
|
|
|
@@ -3238,7 +3238,7 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
|
|
|
*/
|
|
|
qdf_status = hdd_roam_register_sta(adapter,
|
|
|
roam_info,
|
|
|
- sta_ctx->conn_info.staId[0],
|
|
|
+ sta_ctx->conn_info.staid[0],
|
|
|
roam_info->pBssDesc);
|
|
|
hdd_debug("Enabling queues");
|
|
|
wlan_hdd_netif_queue_control(adapter,
|
|
@@ -3266,7 +3266,7 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
|
|
|
if (roam_info->fAuthRequired) {
|
|
|
qdf_status =
|
|
|
hdd_change_peer_state(adapter,
|
|
|
- sta_ctx->conn_info.staId[0],
|
|
|
+ sta_ctx->conn_info.staid[0],
|
|
|
OL_TXRX_PEER_STATE_CONN,
|
|
|
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
|
|
roam_info->roamSynchInProgress
|
|
@@ -3280,10 +3280,10 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
|
|
|
false);
|
|
|
} else {
|
|
|
hdd_debug("staid: %d Changing TL state to AUTHENTICATED",
|
|
|
- sta_ctx->conn_info.staId[0]);
|
|
|
+ sta_ctx->conn_info.staid[0]);
|
|
|
qdf_status =
|
|
|
hdd_change_peer_state(adapter,
|
|
|
- sta_ctx->conn_info.staId[0],
|
|
|
+ sta_ctx->conn_info.staid[0],
|
|
|
OL_TXRX_PEER_STATE_AUTH,
|
|
|
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
|
|
roam_info->roamSynchInProgress
|
|
@@ -3637,10 +3637,10 @@ bool hdd_save_peer(struct hdd_station_ctx *sta_ctx, uint8_t sta_id,
|
|
|
int idx;
|
|
|
|
|
|
for (idx = 0; idx < SIR_MAX_NUM_STA_IN_IBSS; idx++) {
|
|
|
- if (HDD_WLAN_INVALID_STA_ID == 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;
|
|
|
+ sta_ctx->conn_info.staid[idx] = sta_id;
|
|
|
qdf_copy_macaddr(
|
|
|
&sta_ctx->conn_info.peerMacAddress[idx],
|
|
|
peer_mac_addr);
|
|
@@ -3662,8 +3662,8 @@ void hdd_delete_peer(struct hdd_station_ctx *sta_ctx, uint8_t sta_id)
|
|
|
int i;
|
|
|
|
|
|
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] = HDD_WLAN_INVALID_STA_ID;
|
|
|
+ if (sta_id == sta_ctx->conn_info.staid[i]) {
|
|
|
+ sta_ctx->conn_info.staid[i] = HDD_WLAN_INVALID_STA_ID;
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -3688,8 +3688,8 @@ static bool roam_remove_ibss_station(struct hdd_adapter *adapter, uint8_t staid)
|
|
|
struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
|
|
|
|
for (idx = 0; idx < MAX_PEERS; idx++) {
|
|
|
- if (staid == sta_ctx->conn_info.staId[idx]) {
|
|
|
- sta_ctx->conn_info.staId[idx] =
|
|
|
+ if (staid == sta_ctx->conn_info.staid[idx]) {
|
|
|
+ sta_ctx->conn_info.staid[idx] =
|
|
|
HDD_WLAN_INVALID_STA_ID;
|
|
|
|
|
|
qdf_zero_macaddr(&sta_ctx->conn_info.
|
|
@@ -3705,7 +3705,7 @@ static bool roam_remove_ibss_station(struct hdd_adapter *adapter, uint8_t staid)
|
|
|
|
|
|
empty_slots++;
|
|
|
} else {
|
|
|
- if (sta_ctx->conn_info.staId[idx] !=
|
|
|
+ if (sta_ctx->conn_info.staid[idx] !=
|
|
|
HDD_WLAN_INVALID_STA_ID) {
|
|
|
valid_idx = idx;
|
|
|
} else {
|
|
@@ -3724,16 +3724,16 @@ static bool roam_remove_ibss_station(struct hdd_adapter *adapter, uint8_t staid)
|
|
|
/* Find next active staid, to have a valid sta trigger for TL. */
|
|
|
if (fSuccess == true) {
|
|
|
if (del_idx == 0) {
|
|
|
- if (sta_ctx->conn_info.staId[valid_idx] !=
|
|
|
+ if (sta_ctx->conn_info.staid[valid_idx] !=
|
|
|
HDD_WLAN_INVALID_STA_ID) {
|
|
|
- sta_ctx->conn_info.staId[0] =
|
|
|
- sta_ctx->conn_info.staId[valid_idx];
|
|
|
+ sta_ctx->conn_info.staid[0] =
|
|
|
+ sta_ctx->conn_info.staid[valid_idx];
|
|
|
qdf_copy_macaddr(&sta_ctx->conn_info.
|
|
|
peerMacAddress[0],
|
|
|
&sta_ctx->conn_info.
|
|
|
peerMacAddress[valid_idx]);
|
|
|
|
|
|
- sta_ctx->conn_info.staId[valid_idx] =
|
|
|
+ sta_ctx->conn_info.staid[valid_idx] =
|
|
|
HDD_WLAN_INVALID_STA_ID;
|
|
|
qdf_zero_macaddr(&sta_ctx->conn_info.
|
|
|
peerMacAddress[valid_idx]);
|
|
@@ -4698,7 +4698,7 @@ hdd_sme_roam_callback(void *pContext, struct csr_roam_info *roam_info,
|
|
|
WLAN_STOP_ALL_NETIF_QUEUE,
|
|
|
WLAN_CONTROL_PATH);
|
|
|
status = hdd_roam_deregister_sta(adapter,
|
|
|
- sta_ctx->conn_info.staId[0]);
|
|
|
+ sta_ctx->conn_info.staid[0]);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(status))
|
|
|
qdf_ret_status = QDF_STATUS_E_FAILURE;
|
|
|
sta_ctx->ft_carrier_on = true;
|