qcacld-3.0: Update uninitialized variables & error handling

Currently, In failure case the spin unlock is not taken care
which is locked before, also the variables are initailized in
specific senarios, with this change the variables are initialised
properly.

Change-Id: Ic6c40065e312dcd2e76dbf50304dfa8f4fb506e9
CRs-Fixed: 1073567
This commit is contained in:
Anurag Chouhan
2016-10-17 17:22:55 +05:30
committed by qcabuildsw
parent d6e5ba6fc6
commit 00ed527a14
2 changed files with 2 additions and 2 deletions

View File

@@ -14461,7 +14461,7 @@ __wlan_hdd_cfg80211_set_ap_channel_width(struct wiphy *wiphy,
hdd_context_t *pHddCtx; hdd_context_t *pHddCtx;
QDF_STATUS status; QDF_STATUS status;
tSmeConfigParams sme_config; tSmeConfigParams sme_config;
bool cbModeChange; bool cbModeChange = false;
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
hdd_err("Command not allowed in FTM mode"); hdd_err("Command not allowed in FTM mode");

View File

@@ -275,7 +275,7 @@ int hdd_napi_apply_throughput_policy(struct hdd_context_s *hddctx,
uint64_t packets = tx_packets + rx_packets; uint64_t packets = tx_packets + rx_packets;
enum qca_napi_tput_state req_state; enum qca_napi_tput_state req_state;
struct qca_napi_data *napid = hdd_napi_get_all(); struct qca_napi_data *napid = hdd_napi_get_all();
int enabled; int enabled = 0;
NAPI_DEBUG("-->%s(tx=%lld, rx=%lld)", __func__, tx_packets, rx_packets); NAPI_DEBUG("-->%s(tx=%lld, rx=%lld)", __func__, tx_packets, rx_packets);