qcacld-3.0: HDD: Fix checkpatch warnings

Fix checkpatch warnings.

Change-Id: Ic329caab07db3a11db3474e7a85ad5957537e5be
CRs-Fixed: 2099382
This commit is contained in:
Srinivas Girigowda
2017-08-25 14:44:26 -07:00
committed by Anjaneedevi Kapparapu
szülő 2c47bb8d26
commit 576b235de7
13 fájl változott, egészen pontosan 70 új sor hozzáadva és 91 régi sor törölve

Fájl megtekintése

@@ -5809,8 +5809,8 @@ static int __iw_set_essid(struct net_device *dev,
/*Try disconnecting if already in connected state*/
status = wlan_hdd_try_disconnect(pAdapter);
if (0 > status) {
hdd_err("Failed to disconnect the existing connection");
return -EALREADY;
hdd_err("Failed to disconnect the existing connection");
return -EALREADY;
}
/*

Fájl megtekintése

@@ -694,12 +694,10 @@ static const struct wiphy_wowlan_support wowlan_support_cfg80211_init = {
static inline void hdd_add_channel_switch_support(uint32_t *flags)
{
*flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH;
return;
}
#else
static inline void hdd_add_channel_switch_support(uint32_t *flags)
{
return;
}
#endif
@@ -1519,6 +1517,7 @@ static void wlan_hdd_set_acs_ch_range(tsap_Config_t *sap_cfg, bool ht_enabled,
bool vht_enabled)
{
int i;
if (sap_cfg->acs_cfg.hw_mode == QCA_ACS_MODE_IEEE80211B) {
sap_cfg->acs_cfg.hw_mode = eCSR_DOT11_MODE_11b;
sap_cfg->acs_cfg.start_ch = WLAN_REG_CH_NUM(CHAN_ENUM_1);
@@ -2277,6 +2276,7 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
*/
if (tb[QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST]) {
char *tmp = nla_data(tb[QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST]);
sap_config->acs_cfg.ch_list_count = nla_len(
tb[QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST]);
if (sap_config->acs_cfg.ch_list_count) {
@@ -2609,8 +2609,6 @@ void wlan_hdd_cfg80211_acs_ch_select_evt(hdd_adapter_t *adapter)
msecs_to_jiffies(500));
clear_bit(ACS_PENDING, &con_sap_adapter->event_flags);
}
return;
}
static int
@@ -6531,7 +6529,6 @@ __wlan_hdd_cfg80211_offloaded_packets(struct wiphy *wiphy,
return wlan_hdd_del_tx_ptrn(adapter, hdd_ctx, tb);
hdd_err("Invalid control: %d", control);
return -EINVAL;
}
@@ -6776,7 +6773,6 @@ void hdd_rssi_threshold_breached(void *hddctx,
fail:
kfree_skb(skb);
return;
}
static const struct nla_policy
@@ -8591,7 +8587,6 @@ static int wlan_hdd_validate_and_get_pre_cac_ch(hdd_context_t *hdd_ctx,
hdd_err("Invalid channel for pre cac:%d", channel);
return -EINVAL;
}
*pre_cac_chan = channel;
}
hdd_debug("selected pre cac channel:%d", *pre_cac_chan);
@@ -8975,13 +8970,10 @@ static enum sta_roam_policy_dfs_mode wlan_hdd_get_sta_roam_dfs_mode(
switch (mode) {
case DFS_MODE_ENABLE:
return CSR_STA_ROAM_POLICY_DFS_ENABLED;
break;
case DFS_MODE_DISABLE:
return CSR_STA_ROAM_POLICY_DFS_DISABLED;
break;
case DFS_MODE_DEPRIORITIZE:
return CSR_STA_ROAM_POLICY_DFS_DEPRIORITIZE;
break;
default:
hdd_err("STA Roam policy dfs mode is NONE");
return CSR_STA_ROAM_POLICY_NONE;
@@ -9002,6 +8994,7 @@ uint8_t hdd_get_sap_operating_band(hdd_context_t *hdd_ctx)
hdd_adapter_t *adapter;
uint8_t operating_channel = 0;
uint8_t sap_operating_band = 0;
status = hdd_get_front_adapter(hdd_ctx, &adapter_node);
while (NULL != adapter_node && QDF_STATUS_SUCCESS == status) {
adapter = adapter_node->pAdapter;
@@ -11804,14 +11797,13 @@ int wlan_hdd_cfg80211_init(struct device *dev,
wlan_hdd_band_5_ghz.ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_20;
}
if (!pCfg->ShortGI40MhzEnable) {
wlan_hdd_band_5_ghz.ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40;
}
if (!pCfg->ShortGI40MhzEnable)
wlan_hdd_band_5_ghz.ht_cap.cap &=
~IEEE80211_HT_CAP_SGI_40;
if (!pCfg->nChannelBondingMode5GHz) {
if (!pCfg->nChannelBondingMode5GHz)
wlan_hdd_band_5_ghz.ht_cap.cap &=
~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
}
/*
* In case of static linked driver at the time of driver unload,
@@ -11900,9 +11892,8 @@ int wlan_hdd_cfg80211_init(struct device *dev,
ARRAY_SIZE(wlan_hdd_cfg80211_vendor_events);
}
if (pCfg->enableDFSMasterCap) {
if (pCfg->enableDFSMasterCap)
wiphy->flags |= WIPHY_FLAG_DFS_OFFLOAD;
}
wiphy->max_ap_assoc_sta = pCfg->maxNumberOfPeers;
@@ -12314,11 +12305,11 @@ void wlan_hdd_cfg80211_set_key_wapi(hdd_adapter_t *pAdapter, uint8_t key_index,
setKey.encType = eCSR_ENCRYPT_TYPE_WPI; /* SET WAPI Encryption */
setKey.keyDirection = eSIR_TX_RX; /* Key Directionn both TX and RX */
setKey.paeRole = 0; /* the PAE role */
if (!mac_addr || is_broadcast_ether_addr(mac_addr)) {
if (!mac_addr || is_broadcast_ether_addr(mac_addr))
qdf_set_macaddr_broadcast(&setKey.peerMac);
} else {
else
qdf_mem_copy(setKey.peerMac.bytes, mac_addr, QDF_MAC_ADDR_SIZE);
}
setKey.keyLength = key_Len;
pKeyPtr = setKey.Key;
memcpy(pKeyPtr, key, key_Len);
@@ -12353,9 +12344,8 @@ uint8_t *wlan_hdd_cfg80211_get_ie_ptr(const uint8_t *ies_ptr, int length,
eid, elem_len, left);
return NULL;
}
if (elem_id == eid) {
if (elem_id == eid)
return ptr;
}
left -= elem_len;
ptr += (elem_len + 2);
@@ -12423,9 +12413,8 @@ QDF_STATUS wlan_hdd_validate_operation_channel(hdd_adapter_t *pAdapter,
return QDF_STATUS_E_FAILURE;
}
for (indx = 0; indx < num_ch; indx++) {
if (channel == valid_ch[indx]) {
if (channel == valid_ch[indx])
break;
}
}
if (indx >= num_ch) {
@@ -12446,6 +12435,7 @@ static void wlan_hdd_set_dhcp_server_offload(hdd_adapter_t *pHostapdAdapter)
uint8_t srv_ip[IPADDR_NUM_ENTRIES];
uint8_t num;
uint32_t temp;
pDhcpSrvInfo = qdf_mem_malloc(sizeof(*pDhcpSrvInfo));
if (NULL == pDhcpSrvInfo) {
hdd_err("could not allocate tDhcpSrvOffloadInfo!");
@@ -12480,7 +12470,6 @@ static void wlan_hdd_set_dhcp_server_offload(hdd_adapter_t *pHostapdAdapter)
hdd_debug("enable DHCP Server offload successfully!");
end:
qdf_mem_free(pDhcpSrvInfo);
return;
}
#endif /* DHCP_SERVER_OFFLOAD */
@@ -12534,9 +12523,8 @@ static int __wlan_hdd_cfg80211_change_bss(struct wiphy *wiphy,
pAdapter->sessionCtx.
ap.
apDisableIntraBssFwd);
if (!QDF_IS_STATUS_SUCCESS(qdf_ret_status)) {
if (!QDF_IS_STATUS_SUCCESS(qdf_ret_status))
ret = -EINVAL;
}
}
EXIT();
@@ -12622,6 +12610,7 @@ static int wlan_hdd_cfg80211_change_bss(struct wiphy *wiphy,
void *wlan_hdd_change_country_code_cb(void *pAdapter)
{
hdd_adapter_t *call_back_pAdapter = pAdapter;
complete(&call_back_pAdapter->change_country_code);
return NULL;
}
@@ -12865,6 +12854,7 @@ static bool wlan_hdd_is_duplicate_channel(uint8_t *arr,
int index, uint8_t match)
{
int i;
for (i = 0; i < index; i++) {
if (arr[i] == match)
return true;
@@ -12973,10 +12963,12 @@ static int __wlan_hdd_change_station(struct wiphy *wiphy,
int i = 0, j = 0, k = 0, no_of_channels = 0;
int num_unique_channels;
int next;
for (i = 0;
i < params->supported_channels_len
&& j < SIR_MAC_MAX_SUPP_CHANNELS; i += 2) {
int wifi_chan_index;
if (!wlan_hdd_is_duplicate_channel
(StaParams.supported_channels, j,
params->supported_channels[i])) {
@@ -13079,6 +13071,7 @@ static int __wlan_hdd_change_station(struct wiphy *wiphy,
if (0 != StaParams.supported_rates_len) {
int i = 0;
qdf_mem_copy(StaParams.supported_rates,
params->supported_rates,
StaParams.supported_rates_len);
@@ -13099,13 +13092,12 @@ static int __wlan_hdd_change_station(struct wiphy *wiphy,
if (0 != params->ext_capab_len) {
/*Define A Macro : TODO Sunil */
if ((1 << 4) & StaParams.extn_capability[3]) {
if ((1 << 4) & StaParams.extn_capability[3])
isBufSta = 1;
}
/* TDLS Channel Switching Support */
if ((1 << 6) & StaParams.extn_capability[3]) {
if ((1 << 6) & StaParams.extn_capability[3])
isOffChannelSupported = 1;
}
}
if (pHddCtx->config->fEnableTDLSWmmMode &&
@@ -13252,8 +13244,8 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
case WLAN_CIPHER_SUITE_TKIP:
{
u8 *pKey = &setKey.Key[0];
setKey.encType = eCSR_ENCRYPT_TYPE_TKIP;
setKey.encType = eCSR_ENCRYPT_TYPE_TKIP;
qdf_mem_zero(pKey, CSR_MAX_KEY_LEN);
/* Supplicant sends the 32bytes key in this order
@@ -13488,6 +13480,7 @@ static int wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
struct key_params *params)
{
int ret;
cds_ssr_protect(__func__);
ret = __wlan_hdd_cfg80211_add_key(wiphy, ndev, key_index, pairwise,
mac_addr, params);
@@ -13836,8 +13829,8 @@ struct cfg80211_bss *wlan_hdd_cfg80211_update_bss_list(
return bss;
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4 , 3, 0)) || \
defined (CFG80211_INFORM_BSS_FRAME_DATA)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)) || \
defined(CFG80211_INFORM_BSS_FRAME_DATA)
static struct cfg80211_bss *
wlan_hdd_cfg80211_inform_bss_frame_data(struct wiphy *wiphy,
struct ieee80211_channel *chan,
@@ -14648,6 +14641,7 @@ static int wlan_hdd_cfg80211_connect_start(hdd_adapter_t *pAdapter,
if (pRoamProfile) {
hdd_station_ctx_t *pHddStaCtx;
pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
/* Restart the opportunistic timer
@@ -15204,6 +15198,7 @@ static int wlan_hdd_cfg80211_set_ie(hdd_adapter_t *pAdapter, const uint8_t *ie,
while (remLen >= 2) {
uint16_t eLen = 0;
uint8_t elementId;
elementId = *genie++;
eLen = *genie++;
remLen -= 2;
@@ -15530,17 +15525,17 @@ static int wlan_hdd_cfg80211_set_privacy(hdd_adapter_t *pAdapter,
{
int status = 0;
hdd_wext_state_t *pWextState = WLAN_HDD_GET_WEXT_STATE_PTR(pAdapter);
ENTER();
/*set wpa version */
pWextState->wpaVersion = IW_AUTH_WPA_VERSION_DISABLED;
if (req->crypto.wpa_versions) {
if (NL80211_WPA_VERSION_1 == req->crypto.wpa_versions) {
if (NL80211_WPA_VERSION_1 == req->crypto.wpa_versions)
pWextState->wpaVersion = IW_AUTH_WPA_VERSION_WPA;
} else if (NL80211_WPA_VERSION_2 == req->crypto.wpa_versions) {
else if (NL80211_WPA_VERSION_2 == req->crypto.wpa_versions)
pWextState->wpaVersion = IW_AUTH_WPA_VERSION_WPA2;
}
}
hdd_debug("set wpa version to %d", pWextState->wpaVersion);
@@ -15959,6 +15954,7 @@ static int wlan_hdd_cfg80211_connect(struct wiphy *wiphy,
struct cfg80211_connect_params *req)
{
int ret;
cds_ssr_protect(__func__);
ret = __wlan_hdd_cfg80211_connect(wiphy, ndev, req);
cds_ssr_unprotect(__func__);
@@ -16282,6 +16278,7 @@ static int wlan_hdd_cfg80211_disconnect(struct wiphy *wiphy,
struct net_device *dev, u16 reason)
{
int ret;
cds_ssr_protect(__func__);
ret = __wlan_hdd_cfg80211_disconnect(wiphy, dev, reason);
cds_ssr_unprotect(__func__);
@@ -16448,9 +16445,8 @@ static int __wlan_hdd_cfg80211_join_ibss(struct wiphy *wiphy,
}
for (indx = 0; indx < numChans; indx++) {
if (channelNum == validChan[indx]) {
if (channelNum == validChan[indx])
break;
}
}
if (indx >= numChans) {
hdd_err("Not valid Channel: %d", channelNum);
@@ -16969,6 +16965,7 @@ int __wlan_hdd_cfg80211_del_station(struct wiphy *wiphy,
if (qdf_is_macaddr_broadcast((struct qdf_mac_addr *) mac)) {
uint16_t i;
for (i = 0; i < WLAN_MAX_STA_COUNT; i++) {
if ((pAdapter->aStaInfo[i].isUsed) &&
(!pAdapter->aStaInfo[i].
@@ -17068,14 +17065,13 @@ int __wlan_hdd_cfg80211_del_station(struct wiphy *wiphy,
MAC_ADDRESS_STR,
MAC_ADDR_ARRAY(mac));
return -ENOENT;
} else {
qdf_status = qdf_wait_single_event(
&hapd_state->
qdf_sta_disassoc_event,
SME_CMD_TIMEOUT_VALUE);
if (!QDF_IS_STATUS_SUCCESS(qdf_status))
hdd_warn("Deauth wait time expired");
}
qdf_status = qdf_wait_single_event(
&hapd_state->
qdf_sta_disassoc_event,
SME_CMD_TIMEOUT_VALUE);
if (!QDF_IS_STATUS_SUCCESS(qdf_status))
hdd_warn("Deauth wait time expired");
}
}
@@ -17094,6 +17090,7 @@ fn_end:
void wlan_hdd_del_station(hdd_adapter_t *adapter)
{
struct station_del_parameters del_sta;
del_sta.mac = NULL;
del_sta.subtype = SIR_MAC_MGMT_DEAUTH >> 4;
del_sta.reason_code = eCsrForcedDeauthSta;
@@ -17891,8 +17888,6 @@ static void wlan_hdd_cfg80211_lphb_ind_handler(void *pHddCtx,
nla_put_failure:
hdd_err("NLA Put fail");
kfree_skb(skb);
return;
}
#endif /* FEATURE_WLAN_LPHB */
@@ -18302,6 +18297,7 @@ enum policy_mgr_con_mode wlan_hdd_convert_nl_iftype_to_hdd_type(
enum nl80211_iftype type)
{
enum policy_mgr_con_mode mode = PM_MAX_NUM_OF_MODE;
switch (type) {
case NL80211_IFTYPE_STATION:
mode = PM_STA_MODE;
@@ -18441,8 +18437,6 @@ void wlan_hdd_clear_link_layer_stats(hdd_adapter_t *adapter)
link_layer_stats_clear_req.reqId = 1;
link_layer_stats_clear_req.staId = adapter->sessionId;
sme_ll_stats_clear_req(hal, &link_layer_stats_clear_req);
return;
}
#define CNT_DIFF(cur, prev) \
@@ -18764,7 +18758,7 @@ static struct cfg80211_ops wlan_hdd_cfg80211_ops = {
#endif
.set_monitor_channel = wlan_hdd_cfg80211_set_mon_ch,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)) || \
defined(CFG80211_ABORT_SCAN)
defined(CFG80211_ABORT_SCAN)
.abort_scan = wlan_hdd_cfg80211_abort_scan,
#endif
};

Fájl megtekintése

@@ -93,7 +93,7 @@
#define WLAN_IS_TDLS_SETUP_ACTION(action) \
((SIR_MAC_TDLS_SETUP_REQ <= action) && \
(SIR_MAC_TDLS_SETUP_CNF >= action))
#if !defined (TDLS_MGMT_VERSION2)
#if !defined(TDLS_MGMT_VERSION2)
#define TDLS_MGMT_VERSION2 0
#endif

Fájl megtekintése

@@ -149,6 +149,7 @@ static const char *pcl_type_to_string(uint8_t idx)
void clean_report(hdd_context_t *hdd_ctx)
{
uint32_t idx = 0;
while (idx < NUMBER_OF_SCENARIO) {
qdf_mem_zero(&report[idx], sizeof(struct report_t));
idx++;
@@ -159,6 +160,7 @@ void clean_report(hdd_context_t *hdd_ctx)
void print_report(hdd_context_t *hdd_ctx)
{
uint32_t idx = 0;
pr_info("+----------Report start -----------+\n");
while (idx < report_idx) {
pr_info("Idx:[%d]\nTitle:%s\nResult:[%s]\n\t1st_person[%s]\n\t2nd_persona[%s]\n\t3rd_persona[%s]\n\tDBS[%s]\n\tsystem_config[%s]\n\treason[%s]\n\tpcl[%s]\n",

Fájl megtekintése

@@ -396,8 +396,7 @@ err_hdd_deinit:
if (reinit) {
cds_set_driver_in_bad_state(true);
cds_set_recovery_in_progress(false);
}
else
} else
cds_set_load_in_progress(false);
hdd_allow_suspend(WIFI_POWER_EVENT_WAKELOCK_DRIVER_INIT);

Fájl megtekintése

@@ -165,7 +165,6 @@ void hdd_ftm_mc_process_msg(void *message)
wlan_hdd_testmode_rx_event(data, (size_t) data_len);
#endif
#endif
return;
}
#if defined(QCA_WIFI_FTM)
@@ -313,11 +312,10 @@ int wlan_hdd_qcmbr_unified_ioctl(hdd_adapter_t *adapter, struct ifreq *ifr)
{
int ret = 0;
if (is_compat_task()) {
if (is_compat_task())
ret = wlan_hdd_qcmbr_compat_ioctl(adapter, ifr);
} else {
else
ret = wlan_hdd_qcmbr_ioctl(adapter, ifr);
}
return ret;
}

Fájl megtekintése

@@ -527,13 +527,9 @@ struct hdd_ipa_priv {
(((_hdd_ctx)->config->IpaConfig & (_mask)) == (_mask))
#define HDD_IPA_INCREASE_INTERNAL_DROP_COUNT(hdd_ipa) \
do { \
hdd_ipa->ipa_rx_internel_drop_count++; \
} while (0)
hdd_ipa->ipa_rx_internel_drop_count++;
#define HDD_IPA_INCREASE_NET_SEND_COUNT(hdd_ipa) \
do { \
hdd_ipa->ipa_rx_net_send_count++; \
} while (0)
hdd_ipa->ipa_rx_net_send_count++;
#define HDD_BW_GET_DIFF(_x, _y) (unsigned long)((ULONG_MAX - (_y)) + (_x) + 1)
#if defined(QCA_WIFI_3_0) && defined(CONFIG_IPA3)
@@ -4982,6 +4978,10 @@ static int __hdd_ipa_wlan_evt(hdd_adapter_t *adapter, uint8_t sta_id,
"IPA resource unload in progress");
return 0;
}
HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR,
"IPA resource %s completed",
hdd_ipa->resource_loading ?
"load" : "unload");
}
hdd_ipa->stats.event[type]++;

Fájl megtekintése

@@ -691,9 +691,8 @@ int wlan_hdd_validate_context(hdd_context_t *hdd_ctx)
return -EAGAIN;
}
if (cds_is_load_or_unload_in_progress()) {
if (cds_is_load_or_unload_in_progress())
return -EAGAIN;
}
if (hdd_ctx->start_modules_in_progress ||
hdd_ctx->stop_modules_in_progress) {
@@ -1988,8 +1987,6 @@ static void hdd_update_hw_sw_info(hdd_context_t *hdd_ctx)
/* Get the wlan hw/fw version */
hdd_wlan_get_version(hdd_ctx, NULL, NULL);
return;
}
/**

Fájl megtekintése

@@ -1004,7 +1004,6 @@ nla_put_failure:
close_ndi:
hdd_close_ndi(adapter);
qdf_mem_free(roam_info);
return;
}
/**

Fájl megtekintése

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -293,12 +293,10 @@ void wlan_hdd_dcc_stats_event(void *context_ptr, void *response_ptr);
#else
static inline void hdd_set_dot11p_config(hdd_context_t *hdd_ctx)
{
return;
}
static inline void hdd_remove_ocb_tx_header(struct sk_buff *skb)
{
return;
}
static inline int iw_set_dot11p_channel_sched(struct net_device *dev,
struct iw_request_info *info,
@@ -374,12 +372,11 @@ static inline int wlan_hdd_cfg80211_dcc_update_ndl(struct wiphy *wiphy,
static inline void wlan_hdd_dcc_register_for_dcc_stats_event(
hdd_context_t *hdd_ctx)
{
return;
}
static inline void wlan_hdd_dcc_stats_event(void *context_ptr,
void *response_ptr)
{
return;
}
#endif

Fájl megtekintése

@@ -1739,8 +1739,7 @@ static void wlan_hdd_tdls_set_mode(hdd_context_t *pHddCtx,
*/
if (pHddCtx->tdls_source_bitmap) {
mutex_unlock(&pHddCtx->tdls_lock);
hdd_debug("Don't enable TDLS, source"
"bitmap: %lu",
hdd_debug("Don't enable TDLS, source bitmap: %lu",
pHddCtx->tdls_source_bitmap);
return;
}

Fájl megtekintése

@@ -9236,8 +9236,8 @@ static int __iw_setnone_getint(struct net_device *dev,
{
sme_get_config_param(hHal, sme_config);
*value = (sme_config->csrConfig.enable2x2 == 0) ? 1 : 2;
if (policy_mgr_is_current_hwmode_dbs(hdd_ctx->hdd_psoc))
*value = *value-1;
if (policy_mgr_is_current_hwmode_dbs(hdd_ctx->hdd_psoc))
*value = *value - 1;
hdd_debug("GET_NSS: Current NSS:%d", *value);
break;
}

Fájl megtekintése

@@ -111,7 +111,6 @@ enum hdd_wmm_linuxac {
void wlan_hdd_process_peer_unauthorised_pause(hdd_adapter_t *adapter)
{
return;
}
#endif
@@ -386,8 +385,6 @@ static void hdd_wmm_inactivity_timer_cb(void *user_data)
QDF_TIMER_STATE_STOPPED);
}
}
return;
}
/**
@@ -431,9 +428,9 @@ hdd_wmm_enable_inactivity_timer(struct hdd_wmm_qos_context *pQosContext,
hdd_err("Starting inactivity timer failed on AC %d",
acType);
qdf_status = qdf_mc_timer_destroy(&pAc->wmmInactivityTimer);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
if (!QDF_IS_STATUS_SUCCESS(qdf_status))
hdd_err("Failed to destroy inactivity timer");
}
return qdf_status;
}
pAc->wmmInactivityTime = inactivityTime;
@@ -1285,9 +1282,8 @@ QDF_STATUS hdd_wmm_init(hdd_adapter_t *pAdapter)
/* DSCP to User Priority Lookup Table
* By default use the 3 Precedence bits of DSCP as the User Priority
*/
for (dscp = 0; dscp <= WLAN_HDD_MAX_DSCP; dscp++) {
for (dscp = 0; dscp <= WLAN_HDD_MAX_DSCP; dscp++)
hddWmmDscpToUpMap[dscp] = dscp >> 3;
}
/* Special case for Expedited Forwarding (DSCP 46) */
hddWmmDscpToUpMap[46] = SME_QOS_WMM_UP_VO;
@@ -1521,8 +1517,6 @@ void hdd_wmm_classify_pkt(hdd_adapter_t *adapter,
#ifdef HDD_WMM_DEBUG
hdd_debug("tos is %d, dscp is %d, up is %d", tos, dscp, *user_pri);
#endif /* HDD_WMM_DEBUG */
return;
}
/**
@@ -1587,6 +1581,7 @@ uint16_t hdd_hostapd_select_queue(struct net_device *dev, struct sk_buff *skb
hdd_context_t *hddctx = WLAN_HDD_GET_CTX(adapter);
bool is_eapol = false;
int status = 0;
status = wlan_hdd_validate_context(hddctx);
if (status != 0) {
@@ -1899,9 +1894,8 @@ QDF_STATUS hdd_wmm_assoc(hdd_adapter_t *pAdapter,
pAdapter->hddWmmDscpToUpMap,
pAdapter->sessionId);
if (!QDF_IS_STATUS_SUCCESS(status)) {
if (!QDF_IS_STATUS_SUCCESS(status))
hdd_wmm_init(pAdapter);
}
EXIT();