diff options
| author | Rajeev Kumar Sirasanagandla <rsirasan@qti.qualcomm.com> | 2016-06-02 13:40:14 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-03 12:12:10 +0530 |
| commit | a94180fd502d4f85ad7fdf6ac197e80f1ed39418 (patch) | |
| tree | da977d77a81881485e54b2fab113874013235c15 | |
| parent | c26b9e5c10b33a560d1e13ed828d0a6d880af5fc (diff) | |
Revert "qcacld-2.0: Implement get_wireless_stats IOCTL"
This reverts commit I4239fff2098800968e5961443186277d8b79062d
When chariot tx traffic is run, almost for every 7 ms there is
invocation of get_wireless_stats IOCTL and leading to higher
inactive times, thereby reduce in tx performance.
To avoid this, previous commit corresponding to IOCTL add is removed.
Change-Id: Idfa13fa0cfa45e028b6d843b1c782384310dda4f
CRs-Fixed: 1023527
| -rw-r--r-- | CORE/HDD/inc/wlan_hdd_wext.h | 2 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_wext.c | 41 |
2 files changed, 3 insertions, 40 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_wext.h b/CORE/HDD/inc/wlan_hdd_wext.h index e18f7f25b663..c4b54031ac3c 100644 --- a/CORE/HDD/inc/wlan_hdd_wext.h +++ b/CORE/HDD/inc/wlan_hdd_wext.h @@ -334,8 +334,6 @@ typedef struct hdd_wext_state_s v_BOOL_t isESEConnection; eCsrAuthType collectedAuthType; /* Collected from ALL SIOCSIWAUTH Ioctls. Will be negotiatedAuthType - in tCsrProfile */ #endif - /* Wireless statistics */ - struct iw_statistics iw_stats; }hdd_wext_state_t; typedef struct ccp_freq_chan_map_s{ diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c index e48bb2c89046..095f04419ad6 100644 --- a/CORE/HDD/src/wlan_hdd_wext.c +++ b/CORE/HDD/src/wlan_hdd_wext.c @@ -4793,48 +4793,12 @@ static int iw_get_nick(struct net_device *dev, * __get_wireless_stats() - get wireless stats * @dev: pointer to net_device * - * Return: pointer to iw_statistics on success, NULL otherwise + * Return: %NULL */ static struct iw_statistics *__get_wireless_stats(struct net_device *dev) { - hdd_adapter_t *adapter = WLAN_HDD_GET_PRIV_PTR(dev); - hdd_context_t *hdd_ctx = WLAN_HDD_GET_CTX(adapter); - hdd_wext_state_t *wext_state = WLAN_HDD_GET_WEXT_STATE_PTR(adapter); - hdd_station_ctx_t *hdd_sta_ctx; - v_S7_t snr = 0, rssi = 0; - int status; - ENTER(); - - status = wlan_hdd_validate_context(hdd_ctx); - if (0 != status) - return NULL; - - hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); - if (eConnectionState_Associated != hdd_sta_ctx->conn_info.connState) { - hddLog(VOS_TRACE_LEVEL_INFO, - FL("not in associated state: %d"), - hdd_sta_ctx->conn_info.connState); - return NULL; - } - - wlan_hdd_get_station_stats(adapter); - wlan_hdd_get_snr(adapter, &snr); - wlan_hdd_get_rssi(adapter, &rssi); - - vos_mem_zero(&wext_state->iw_stats, sizeof(wext_state->iw_stats)); - wext_state->iw_stats.status = 0; - wext_state->iw_stats.qual.qual = snr; - wext_state->iw_stats.qual.level = rssi; - wext_state->iw_stats.qual.noise = rssi - snr; - wext_state->iw_stats.discard.code = 0; - wext_state->iw_stats.discard.retries = 0; - wext_state->iw_stats.miss.beacon = 0; - wext_state->iw_stats.qual.updated = - IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; - - EXIT(); - return &(wext_state->iw_stats); + return NULL; } /** @@ -4855,6 +4819,7 @@ static struct iw_statistics *get_wireless_stats(struct net_device *dev) return iw_stats; } + /** * __iw_set_encode() - SIOCSIWENCODE ioctl handler * @dev: device upon which the ioctl was received |
