mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacld-3.0: Rename pHostapdState
The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename pHostapdState to align with the Coding Style. Change-Id: I11f20591272265ad2e0e9d1f5f8ae1243d3ecd5b CRs-Fixed: 2121138
This commit is contained in:
parent
4c9b675e2f
commit
5c19adea1a
4 changed files with 44 additions and 43 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#define pAdapter
|
||||
#define pHostapdAdapter
|
||||
#define pHddApCtx
|
||||
#define pHostapdState
|
||||
|
||||
/*
|
||||
* Include files
|
||||
|
|
|
|||
|
|
@ -13907,7 +13907,7 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
|
|||
tCsrRoamSetKey setKey;
|
||||
int status;
|
||||
uint32_t roamId = INVALID_ROAM_ID;
|
||||
struct hdd_hostapd_state *pHostapdState;
|
||||
struct hdd_hostapd_state *hostapd_state;
|
||||
QDF_STATUS qdf_ret_status;
|
||||
struct hdd_context *hdd_ctx;
|
||||
struct hdd_ap_ctx *ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);
|
||||
|
|
@ -14082,8 +14082,8 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
|
|||
}
|
||||
if ((adapter->device_mode == QDF_SAP_MODE) ||
|
||||
(adapter->device_mode == QDF_P2P_GO_MODE)) {
|
||||
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
if (pHostapdState->bssState == BSS_START) {
|
||||
hostapd_state = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
if (hostapd_state->bssState == BSS_START) {
|
||||
status = wlansap_set_key_sta(
|
||||
WLAN_HDD_GET_SAP_CTX_PTR(adapter), &setKey);
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
|
|
@ -18818,7 +18818,7 @@ static int __wlan_hdd_cfg80211_set_mac_acl(struct wiphy *wiphy,
|
|||
{
|
||||
int i;
|
||||
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
||||
struct hdd_hostapd_state *pHostapdState;
|
||||
struct hdd_hostapd_state *hostapd_state;
|
||||
tsap_Config_t *pConfig;
|
||||
struct hdd_context *hdd_ctx;
|
||||
int status;
|
||||
|
|
@ -18842,10 +18842,10 @@ static int __wlan_hdd_cfg80211_set_mac_acl(struct wiphy *wiphy,
|
|||
if (0 != status)
|
||||
return status;
|
||||
|
||||
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
hostapd_state = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
if (NULL == pHostapdState) {
|
||||
hdd_err("pHostapdState is Null");
|
||||
if (NULL == hostapd_state) {
|
||||
hdd_err("hostapd_state is Null");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -230,15 +230,15 @@ static void hdd_hostapd_channel_allow_suspend(struct hdd_adapter *adapter,
|
|||
{
|
||||
|
||||
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
struct hdd_hostapd_state *pHostapdState =
|
||||
struct hdd_hostapd_state *hostapd_state =
|
||||
WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
hdd_debug("bssState: %d, channel: %d, dfs_ref_cnt: %d",
|
||||
pHostapdState->bssState, channel,
|
||||
hostapd_state->bssState, channel,
|
||||
atomic_read(&hdd_ctx->sap_dfs_ref_cnt));
|
||||
|
||||
/* Return if BSS is already stopped */
|
||||
if (pHostapdState->bssState == BSS_STOP)
|
||||
if (hostapd_state->bssState == BSS_STOP)
|
||||
return;
|
||||
|
||||
if (CHANNEL_STATE_DFS != wlan_reg_get_channel_state(hdd_ctx->hdd_pdev,
|
||||
|
|
@ -268,15 +268,15 @@ static void hdd_hostapd_channel_prevent_suspend(struct hdd_adapter *adapter,
|
|||
uint8_t channel)
|
||||
{
|
||||
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
struct hdd_hostapd_state *pHostapdState =
|
||||
struct hdd_hostapd_state *hostapd_state =
|
||||
WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
hdd_debug("bssState: %d, channel: %d, dfs_ref_cnt: %d",
|
||||
pHostapdState->bssState, channel,
|
||||
hostapd_state->bssState, channel,
|
||||
atomic_read(&hdd_ctx->sap_dfs_ref_cnt));
|
||||
|
||||
/* Return if BSS is already started && wakelock is acquired */
|
||||
if ((pHostapdState->bssState == BSS_START) &&
|
||||
if ((hostapd_state->bssState == BSS_START) &&
|
||||
(atomic_read(&hdd_ctx->sap_dfs_ref_cnt) >= 1))
|
||||
return;
|
||||
|
||||
|
|
@ -1334,7 +1334,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
{
|
||||
struct hdd_adapter *adapter;
|
||||
struct hdd_ap_ctx *ap_ctx;
|
||||
struct hdd_hostapd_state *pHostapdState;
|
||||
struct hdd_hostapd_state *hostapd_state;
|
||||
struct net_device *dev;
|
||||
eSapHddEvent sapEvent;
|
||||
union iwreq_data wrqu;
|
||||
|
|
@ -1379,7 +1379,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
hostapd_state = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);
|
||||
|
||||
if (!pSapEvent) {
|
||||
|
|
@ -1418,7 +1418,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
adapter->sessionId =
|
||||
pSapEvent->sapevt.sapStartBssCompleteEvent.sessionId;
|
||||
|
||||
pHostapdState->qdf_status =
|
||||
hostapd_state->qdf_status =
|
||||
pSapEvent->sapevt.sapStartBssCompleteEvent.status;
|
||||
|
||||
qdf_atomic_set(&hdd_ctx->dfs_radar_found, 0);
|
||||
|
|
@ -1438,7 +1438,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
ap_ctx->dfs_cac_block_tx, ap_ctx,
|
||||
adapter->sessionId);
|
||||
|
||||
if (pHostapdState->qdf_status) {
|
||||
if (hostapd_state->qdf_status) {
|
||||
hdd_err("startbss event failed!!");
|
||||
/*
|
||||
* Make sure to set the event before proceeding
|
||||
|
|
@ -1446,8 +1446,8 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
* wait till 10 secs and no other connection will
|
||||
* go through before that.
|
||||
*/
|
||||
pHostapdState->bssState = BSS_STOP;
|
||||
qdf_event_set(&pHostapdState->qdf_event);
|
||||
hostapd_state->bssState = BSS_STOP;
|
||||
qdf_event_set(&hostapd_state->qdf_event);
|
||||
goto stopbss;
|
||||
} else {
|
||||
sme_ch_avoid_update_req(hdd_ctx->hHal);
|
||||
|
|
@ -1488,7 +1488,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
* will wait till 10 secs and no other
|
||||
* connection will go through before that.
|
||||
*/
|
||||
qdf_event_set(&pHostapdState->qdf_event);
|
||||
qdf_event_set(&hostapd_state->qdf_event);
|
||||
goto stopbss;
|
||||
}
|
||||
}
|
||||
|
|
@ -1526,7 +1526,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
ap_ctx->
|
||||
operatingChannel);
|
||||
|
||||
pHostapdState->bssState = BSS_START;
|
||||
hostapd_state->bssState = BSS_START;
|
||||
|
||||
/* Set default key index */
|
||||
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_DEBUG,
|
||||
|
|
@ -1606,7 +1606,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
* so once this event gets set, current worker thread might get
|
||||
* pre-empted by caller thread.
|
||||
*/
|
||||
qdf_status = qdf_event_set(&pHostapdState->qdf_event);
|
||||
qdf_status = qdf_event_set(&hostapd_state->qdf_event);
|
||||
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
||||
hdd_err("qdf_event_set failed! status: %d", qdf_status);
|
||||
goto stopbss;
|
||||
|
|
@ -1990,7 +1990,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
hdd_notice(" disassociated " MAC_ADDRESS_STR,
|
||||
MAC_ADDR_ARRAY(wrqu.addr.sa_data));
|
||||
|
||||
qdf_status = qdf_event_set(&pHostapdState->qdf_sta_disassoc_event);
|
||||
qdf_status = qdf_event_set(&hostapd_state->qdf_sta_disassoc_event);
|
||||
if (!QDF_IS_STATUS_SUCCESS(qdf_status))
|
||||
hdd_err("Station Deauth event Set failed");
|
||||
|
||||
|
|
@ -2221,7 +2221,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||
|
||||
case eSAP_CHANNEL_CHANGE_EVENT:
|
||||
hdd_debug("Received eSAP_CHANNEL_CHANGE_EVENT event");
|
||||
if (pHostapdState->bssState != BSS_STOP) {
|
||||
if (hostapd_state->bssState != BSS_STOP) {
|
||||
/* Prevent suspend for new channel */
|
||||
hdd_hostapd_channel_prevent_suspend(adapter,
|
||||
pSapEvent->sapevt.sap_ch_selected.pri_ch);
|
||||
|
|
@ -2391,7 +2391,7 @@ stopbss:
|
|||
* things down, we don't want interfaces to become
|
||||
* re-enabled
|
||||
*/
|
||||
pHostapdState->bssState = BSS_STOP;
|
||||
hostapd_state->bssState = BSS_STOP;
|
||||
|
||||
if (0 !=
|
||||
(WLAN_HDD_GET_CTX(adapter))->config->
|
||||
|
|
@ -2445,7 +2445,7 @@ stopbss:
|
|||
* by another thread
|
||||
*/
|
||||
if (eSAP_STOP_BSS_EVENT == sapEvent)
|
||||
qdf_event_set(&pHostapdState->qdf_stop_bss_event);
|
||||
qdf_event_set(&hostapd_state->qdf_stop_bss_event);
|
||||
|
||||
hdd_ipa_set_tx_flow_info();
|
||||
/* Send SCC/MCC Switching event to IPA */
|
||||
|
|
@ -4867,7 +4867,7 @@ static int __iw_get_ap_freq(struct net_device *dev,
|
|||
struct hdd_adapter *adapter = (netdev_priv(dev));
|
||||
struct hdd_context *hdd_ctx;
|
||||
tHalHandle hHal;
|
||||
struct hdd_hostapd_state *pHostapdState;
|
||||
struct hdd_hostapd_state *hostapd_state;
|
||||
struct hdd_ap_ctx *ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);
|
||||
int ret;
|
||||
|
||||
|
|
@ -4882,10 +4882,10 @@ static int __iw_get_ap_freq(struct net_device *dev,
|
|||
if (0 != ret)
|
||||
return ret;
|
||||
|
||||
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
hostapd_state = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
hHal = WLAN_HDD_GET_HAL_CTX(adapter);
|
||||
|
||||
if (pHostapdState->bssState == BSS_STOP) {
|
||||
if (hostapd_state->bssState == BSS_STOP) {
|
||||
if (sme_cfg_get_int(hHal, WNI_CFG_CURRENT_CHANNEL, &channel)
|
||||
!= QDF_STATUS_SUCCESS) {
|
||||
return -EIO;
|
||||
|
|
@ -5018,15 +5018,15 @@ __iw_softap_stopbss(struct net_device *dev,
|
|||
return ret;
|
||||
|
||||
if (test_bit(SOFTAP_BSS_STARTED, &adapter->event_flags)) {
|
||||
struct hdd_hostapd_state *pHostapdState =
|
||||
struct hdd_hostapd_state *hostapd_state =
|
||||
WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
qdf_event_reset(&pHostapdState->qdf_stop_bss_event);
|
||||
qdf_event_reset(&hostapd_state->qdf_stop_bss_event);
|
||||
status = wlansap_stop_bss(
|
||||
WLAN_HDD_GET_SAP_CTX_PTR(adapter));
|
||||
if (QDF_IS_STATUS_SUCCESS(status)) {
|
||||
status =
|
||||
qdf_wait_single_event(&pHostapdState->
|
||||
qdf_wait_single_event(&hostapd_state->
|
||||
qdf_stop_bss_event,
|
||||
SME_CMD_TIMEOUT_VALUE);
|
||||
|
||||
|
|
@ -7416,7 +7416,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|||
int status = QDF_STATUS_SUCCESS, ret;
|
||||
int qdf_status = QDF_STATUS_SUCCESS;
|
||||
tpWLAN_SAPEventCB pSapEventCallback;
|
||||
struct hdd_hostapd_state *pHostapdState;
|
||||
struct hdd_hostapd_state *hostapd_state;
|
||||
tHalHandle hHal = WLAN_HDD_GET_HAL_CTX(adapter);
|
||||
struct qc_mac_acl_entry *acl_entry = NULL;
|
||||
int32_t i;
|
||||
|
|
@ -7453,7 +7453,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|||
}
|
||||
|
||||
iniConfig = hdd_ctx->config;
|
||||
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
hostapd_state = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
clear_bit(ACS_PENDING, &adapter->event_flags);
|
||||
clear_bit(ACS_IN_PROGRESS, &hdd_ctx->g_event_flags);
|
||||
|
|
@ -7964,7 +7964,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|||
(WLAN_HDD_GET_AP_CTX_PTR(adapter))->dfs_cac_block_tx = true;
|
||||
set_bit(SOFTAP_INIT_DONE, &adapter->event_flags);
|
||||
|
||||
qdf_event_reset(&pHostapdState->qdf_event);
|
||||
qdf_event_reset(&hostapd_state->qdf_event);
|
||||
status = wlansap_start_bss(
|
||||
WLAN_HDD_GET_SAP_CTX_PTR(adapter),
|
||||
pSapEventCallback, pConfig, adapter->dev);
|
||||
|
|
@ -7978,7 +7978,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|||
|
||||
hdd_debug("Waiting for Scan to complete(auto mode) and BSS to start");
|
||||
|
||||
qdf_status = qdf_wait_single_event(&pHostapdState->qdf_event,
|
||||
qdf_status = qdf_wait_single_event(&hostapd_state->qdf_event,
|
||||
SME_CMD_TIMEOUT_VALUE);
|
||||
|
||||
wlansap_reset_sap_config_add_ie(pConfig, eUPDATE_IE_ALL);
|
||||
|
|
@ -7996,7 +7996,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|||
set_bit(SOFTAP_BSS_STARTED, &adapter->event_flags);
|
||||
/* Initialize WMM configuation */
|
||||
hdd_wmm_init(adapter);
|
||||
if (pHostapdState->bssState == BSS_START)
|
||||
if (hostapd_state->bssState == BSS_START)
|
||||
policy_mgr_incr_active_session(hdd_ctx->hdd_psoc,
|
||||
adapter->device_mode,
|
||||
adapter->sessionId);
|
||||
|
|
@ -8020,7 +8020,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
|
|||
hdd_unsafe_channel_restart_sap(hdd_ctx);
|
||||
|
||||
hdd_set_connection_in_progress(false);
|
||||
pHostapdState->bCommit = true;
|
||||
hostapd_state->bCommit = true;
|
||||
EXIT();
|
||||
|
||||
ret = 0;
|
||||
|
|
@ -8186,14 +8186,14 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
|
|||
|
||||
mutex_lock(&hdd_ctx->sap_lock);
|
||||
if (test_bit(SOFTAP_BSS_STARTED, &adapter->event_flags)) {
|
||||
struct hdd_hostapd_state *pHostapdState =
|
||||
struct hdd_hostapd_state *hostapd_state =
|
||||
WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
qdf_event_reset(&pHostapdState->qdf_stop_bss_event);
|
||||
qdf_event_reset(&hostapd_state->qdf_stop_bss_event);
|
||||
status = wlansap_stop_bss(WLAN_HDD_GET_SAP_CTX_PTR(adapter));
|
||||
if (QDF_IS_STATUS_SUCCESS(status)) {
|
||||
qdf_status =
|
||||
qdf_wait_single_event(&pHostapdState->
|
||||
qdf_wait_single_event(&hostapd_state->
|
||||
qdf_stop_bss_event,
|
||||
SME_CMD_TIMEOUT_VALUE);
|
||||
|
||||
|
|
|
|||
|
|
@ -669,9 +669,9 @@ QDF_STATUS hdd_softap_deinit_tx_rx_sta(struct hdd_adapter *adapter,
|
|||
uint8_t STAId)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct hdd_hostapd_state *pHostapdState;
|
||||
struct hdd_hostapd_state *hostapd_state;
|
||||
|
||||
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
hostapd_state = WLAN_HDD_GET_HOSTAP_STATE_PTR(adapter);
|
||||
|
||||
spin_lock_bh(&adapter->staInfo_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue