diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 52ed29e285..e90d002ce4 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -3101,7 +3101,7 @@ static inline void hdd_send_peer_status_ind_to_app( uint8_t peer_status, uint8_t peer_timing_meas_cap, uint8_t sessionId, - tSirSmeChanInfo *chan_info, + struct oem_channel_info *chan_info, enum QDF_OPMODE dev_mode) { struct wifi_pos_ch_info ch_info; @@ -3134,7 +3134,7 @@ static inline void hdd_send_peer_status_ind_to_app( uint8_t peer_status, uint8_t peer_timing_meas_cap, uint8_t sessionId, - tSirSmeChanInfo *chan_info, + struct oem_channel_info *chan_info, enum QDF_OPMODE dev_mode) { hdd_send_peer_status_ind_to_oem_app(peer_mac, peer_status, diff --git a/core/hdd/inc/wlan_hdd_oemdata.h b/core/hdd/inc/wlan_hdd_oemdata.h index c8cd09d56d..fcad79dfd8 100644 --- a/core/hdd/inc/wlan_hdd_oemdata.h +++ b/core/hdd/inc/wlan_hdd_oemdata.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -171,7 +171,7 @@ void hdd_send_peer_status_ind_to_oem_app(struct qdf_mac_addr *peerMac, uint8_t peerStatus, uint8_t peerTimingMeasCap, uint8_t sessionId, - struct sSirSmeChanInfo *chan_info, + struct oem_channel_info *chan_info, enum QDF_OPMODE dev_mode); int iw_get_oem_data_cap(struct net_device *dev, struct iw_request_info *info, diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 0138bdca56..1cf45b78e7 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1353,7 +1353,7 @@ static void hdd_send_association_event(struct net_device *dev, } #endif if (eConnectionState_Associated == sta_ctx->conn_info.connState) { - tSirSmeChanInfo chan_info = {0}; + struct oem_channel_info chan_info = {0}; if (!pCsrRoamInfo || !pCsrRoamInfo->pBssDesc) { hdd_warn("STA in associated state but pCsrRoamInfo is null"); diff --git a/core/hdd/src/wlan_hdd_oemdata.c b/core/hdd/src/wlan_hdd_oemdata.c index 230a5586fa..af1312d409 100644 --- a/core/hdd/src/wlan_hdd_oemdata.c +++ b/core/hdd/src/wlan_hdd_oemdata.c @@ -682,7 +682,7 @@ void hdd_send_peer_status_ind_to_oem_app(struct qdf_mac_addr *peerMac, uint8_t peerStatus, uint8_t peerTimingMeasCap, uint8_t sessionId, - tSirSmeChanInfo *chan_info, + struct oem_channel_info *chan_info, enum QDF_OPMODE dev_mode) { struct sk_buff *skb; diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index f3b9b1572b..faefb3a276 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -1056,7 +1056,7 @@ struct join_rsp { uint8_t frames[1]; }; -typedef struct sSirSmeChanInfo { +struct oem_channel_info { uint8_t chan_id; uint32_t mhz; uint32_t band_center_freq1; @@ -1068,7 +1068,7 @@ typedef struct sSirSmeChanInfo { uint32_t rate_flags; uint8_t sec_ch_offset; enum phy_ch_width ch_width; -} tSirSmeChanInfo, *tpSirSmeChanInfo; +}; enum sir_sme_phy_mode { SIR_SME_PHY_MODE_LEGACY = 0, @@ -1110,7 +1110,7 @@ typedef struct sSirSmeAssocInd { /* Timing measurement capability */ uint8_t timingMeasCap; - tSirSmeChanInfo chan_info; + struct oem_channel_info chan_info; bool ampdu; bool sgi_enable; bool tx_stbc; diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c index 415fcf8236..5a4e053071 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c @@ -736,7 +736,7 @@ lim_fill_assoc_ind_params(struct mac_context *mac_ctx, assoc_ind->supportedChannels.numChnl); } qdf_mem_copy(&sme_assoc_ind->chan_info, &assoc_ind->chan_info, - sizeof(tSirSmeChanInfo)); + sizeof(struct oem_channel_info)); /* Fill in WmmInfo */ sme_assoc_ind->wmmEnabledSta = assoc_ind->WmmStaInfoPresent; sme_assoc_ind->ampdu = assoc_ind->ampdu; diff --git a/core/mac/src/pe/lim/lim_types.h b/core/mac/src/pe/lim/lim_types.h index 5902b07c7a..ca1a3611da 100644 --- a/core/mac/src/pe/lim/lim_types.h +++ b/core/mac/src/pe/lim/lim_types.h @@ -227,7 +227,7 @@ typedef struct sLimMlmAssocInd { uint8_t *beaconPtr; uint32_t assocReqLength; uint8_t *assocReqPtr; - tSirSmeChanInfo chan_info; + struct oem_channel_info chan_info; bool ampdu; bool sgi_enable; bool tx_stbc; diff --git a/core/sap/inc/sap_api.h b/core/sap/inc/sap_api.h index f6b16a303c..8b25dda6e0 100644 --- a/core/sap/inc/sap_api.h +++ b/core/sap/inc/sap_api.h @@ -267,7 +267,7 @@ typedef struct sap_StationAssocReassocCompleteEvent_s { uint32_t statusCode; bool wmmEnabled; uint8_t timingMeasCap; - tSirSmeChanInfo chan_info; + struct oem_channel_info chan_info; bool ampdu; bool sgi_enable; bool tx_stbc; diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 37d2362a69..43d8442b7f 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1357,7 +1357,7 @@ QDF_STATUS sap_signal_hdd_event(struct sap_context *sap_ctx, QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; tSap_Event sap_ap_event = {0}; struct mac_context *mac_ctx; - tSirSmeChanInfo *chaninfo; + struct oem_channel_info *chaninfo; tSap_StationAssocIndication *assoc_ind; tSap_StartBssCompleteEvent *bss_complete; struct sap_ch_selected_s *acs_selected; diff --git a/core/sme/inc/csr_api.h b/core/sme/inc/csr_api.h index 053b3ce893..017a11c014 100644 --- a/core/sme/inc/csr_api.h +++ b/core/sme/inc/csr_api.h @@ -1137,7 +1137,7 @@ struct csr_roam_info { uint8_t replay_ctr[SIR_REPLAY_CTR_LEN]; uint8_t subnet_change_status; #endif - tSirSmeChanInfo chan_info; + struct oem_channel_info chan_info; uint8_t target_channel; #ifdef WLAN_FEATURE_NAN @@ -1194,7 +1194,7 @@ typedef struct sSirSmeAssocIndToUpperLayerCnf { uint8_t reassocReq; /* set to true if reassoc */ /* Timing and fine Timing measurement capability clubbed together */ uint8_t timingMeasCap; - tSirSmeChanInfo chan_info; + struct oem_channel_info chan_info; uint8_t target_channel; bool ampdu; bool sgi_enable; diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 87cedf98f7..43c6663098 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -9621,7 +9621,7 @@ void csr_roam_joined_state_msg_processor(struct mac_context *mac, void *pMsgBuf) pUpperLayerAssocCnf->timingMeasCap; qdf_mem_copy(&roam_info->chan_info, &pUpperLayerAssocCnf->chan_info, - sizeof(tSirSmeChanInfo)); + sizeof(struct oem_channel_info)); roam_info->ampdu = pUpperLayerAssocCnf->ampdu; roam_info->sgi_enable = pUpperLayerAssocCnf->sgi_enable; roam_info->tx_stbc = pUpperLayerAssocCnf->tx_stbc; @@ -10579,7 +10579,7 @@ csr_roam_chk_lnk_assoc_ind(struct mac_context *mac_ctx, tSirSmeRsp *msg_ptr) roam_info_ptr->ecsa_capable = pAssocInd->ecsa_capable; qdf_mem_copy(&roam_info_ptr->chan_info, &pAssocInd->chan_info, - sizeof(tSirSmeChanInfo)); + sizeof(struct oem_channel_info)); if (pAssocInd->HTCaps.present) qdf_mem_copy(&roam_info_ptr->ht_caps, @@ -15585,7 +15585,7 @@ QDF_STATUS csr_send_assoc_ind_to_upper_layer_cnf_msg(struct mac_context *mac, /* chan_info */ pBuf = (uint8_t *)&pMsg->chan_info; qdf_mem_copy((void *)pBuf, &pAssocInd->chan_info, - sizeof(tSirSmeChanInfo)); + sizeof(struct oem_channel_info)); /* ampdu */ pBuf = (uint8_t *)&pMsg->ampdu; *((bool *)pBuf) = pAssocInd->ampdu;