diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 2aaa54527eb1..6e154012bbf1 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -3790,6 +3790,7 @@ QDF_STATUS hdd_roam_deregister_tdlssta(struct hdd_adapter *adapter, uint8_t staId) { QDF_STATUS qdf_status; + qdf_status = cdp_clear_peer(cds_get_context(QDF_MODULE_ID_SOC), (struct cdp_pdev *)cds_get_context(QDF_MODULE_ID_TXRX), staId); diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index d0daf43ec565..806bbe449291 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -5385,6 +5385,7 @@ int wlan_hdd_send_roam_auth_event(struct hdd_adapter *adapter, uint8_t *bssid, struct hdd_context *hdd_ctx_ptr = WLAN_HDD_GET_CTX(adapter); struct sk_buff *skb = NULL; eCsrAuthType auth_type; + ENTER(); if (wlan_hdd_validate_context(hdd_ctx_ptr)) @@ -14544,6 +14545,7 @@ static int wlan_hdd_cfg80211_set_default_key(struct wiphy *wiphy, bool unicast, bool multicast) { int ret; + cds_ssr_protect(__func__); ret = __wlan_hdd_cfg80211_set_default_key(wiphy, ndev, key_index, unicast, diff --git a/core/hdd/src/wlan_hdd_debugfs.c b/core/hdd/src/wlan_hdd_debugfs.c index 22da52b26ad3..c465d4fbc405 100644 --- a/core/hdd/src/wlan_hdd_debugfs.c +++ b/core/hdd/src/wlan_hdd_debugfs.c @@ -516,6 +516,7 @@ struct power_stats_priv { static void hdd_power_debugstats_dealloc(void *priv) { struct power_stats_priv *stats = priv; + qdf_mem_free(stats->power_stats.debug_registers); } @@ -845,6 +846,7 @@ static QDF_STATUS wlan_hdd_create_power_stats_file(struct hdd_adapter *adapter) QDF_STATUS hdd_debugfs_init(struct hdd_adapter *adapter) { struct net_device *dev = adapter->dev; + adapter->debugfs_phy = debugfs_create_dir(dev->name, 0); if (NULL == adapter->debugfs_phy) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 47f550297f47..6ec90be09c99 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -3666,6 +3666,7 @@ static __iw_softap_setparam(struct net_device *dev, struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter); void *soc = cds_get_context(QDF_MODULE_ID_SOC); + hdd_debug("QCASAP_CLEAR_STATS val %d", set_value); switch (set_value) { case CDP_HDD_STATS: diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index f3acc28998b4..13baf638bd52 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2170,6 +2170,7 @@ static void hdd_register_policy_manager_callback( struct wlan_objmgr_psoc *psoc) { struct policy_mgr_hdd_cbacks hdd_cbacks; + hdd_cbacks.sap_restart_chan_switch_cb = sap_restart_chan_switch_cb; hdd_cbacks.wlan_hdd_get_channel_for_sap_restart = @@ -4940,11 +4941,12 @@ static void hdd_connect_done(struct net_device *dev, const u8 *bssid, struct cfg80211_bss *bss, tCsrRoamInfo *roam_info, const u8 *req_ie, size_t req_ie_len, const u8 *resp_ie, size_t resp_ie_len, u16 status, - gfp_t gfp, bool connect_timeout, tSirResultCodes - timeout_reason, struct fils_join_rsp_params - *roam_fils_params) + gfp_t gfp, bool connect_timeout, + tSirResultCodes timeout_reason, + struct fils_join_rsp_params *roam_fils_params) { struct cfg80211_connect_resp_params fils_params; + qdf_mem_zero(&fils_params, sizeof(fils_params)); if (!roam_fils_params) { @@ -4982,14 +4984,14 @@ static void hdd_connect_done(struct net_device *dev, const u8 *bssid, roam_info->fils_join_rsp = NULL; } #else -static inline void hdd_connect_done(struct net_device *dev, const u8 *bssid, - struct cfg80211_bss *bss, tCsrRoamInfo - *roam_info, const u8 *req_ie, - size_t req_ie_len, const u8 *resp_ie, - size_t resp_ie_len, u16 status, gfp_t gfp, - bool connect_timeout, tSirResultCodes - timeout_reason, struct fils_join_rsp_params - *roam_fils_params) +static inline void +hdd_connect_done(struct net_device *dev, const u8 *bssid, + struct cfg80211_bss *bss, tCsrRoamInfo *roam_info, + const u8 *req_ie, size_t req_ie_len, + const u8 *resp_ie, size_t resp_ie_len, u16 status, + gfp_t gfp, bool connect_timeout, + tSirResultCodes timeout_reason, + struct fils_join_rsp_params *roam_fils_params) { } static inline void hdd_update_hlp_info(struct net_device *dev, diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c index a4f9d863361b..22e069b62d32 100644 --- a/core/hdd/src/wlan_hdd_nan_datapath.c +++ b/core/hdd/src/wlan_hdd_nan_datapath.c @@ -2311,6 +2311,7 @@ void hdd_ndi_close(uint8_t vdev_id) { struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); struct hdd_adapter *adapter = hdd_get_adapter_by_vdev(hdd_ctx, vdev_id); + hdd_close_ndi(adapter); } @@ -2336,6 +2337,7 @@ int hdd_ndp_get_peer_idx(uint8_t vdev_id, struct qdf_mac_addr *addr) struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); struct hdd_adapter *adapter = hdd_get_adapter_by_vdev(hdd_ctx, vdev_id); struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); + return hdd_get_peer_idx(sta_ctx, addr); } diff --git a/core/hdd/src/wlan_hdd_napi.c b/core/hdd/src/wlan_hdd_napi.c index 13732462fcf1..f6c8383f75e8 100644 --- a/core/hdd/src/wlan_hdd_napi.c +++ b/core/hdd/src/wlan_hdd_napi.c @@ -184,6 +184,7 @@ int hdd_napi_destroy(int force) } } else { struct hif_opaque_softc *hif_ctx; + hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); if (unlikely(NULL == hif_ctx)) diff --git a/core/hdd/src/wlan_hdd_p2p.c b/core/hdd/src/wlan_hdd_p2p.c index 4da0aff40ba0..4f53007db72f 100644 --- a/core/hdd/src/wlan_hdd_p2p.c +++ b/core/hdd/src/wlan_hdd_p2p.c @@ -1219,6 +1219,7 @@ __wlan_hdd_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy, qdf_list_node_t *tmp, *q; struct hdd_roc_req *curr_roc_req; uint32_t roc_scan_id; + ENTER(); if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { @@ -1450,6 +1451,7 @@ static int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, struct hdd_adapter *goAdapter; uint16_t current_freq; uint8_t home_ch = 0; + ENTER(); if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index a960a5a3d23c..8da5cb022f51 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -146,6 +146,7 @@ extern struct notifier_block hdd_netdev_notifier; static void hdd_enable_gtk_offload(struct hdd_adapter *adapter) { QDF_STATUS status; + status = pmo_ucfg_enable_gtk_offload_in_fwr(adapter->hdd_vdev); if (status != QDF_STATUS_SUCCESS) hdd_info("Failed to enable gtk offload"); @@ -1070,6 +1071,7 @@ hdd_suspend_wlan(void) struct hdd_adapter *adapter = NULL; hdd_adapter_list_node_t *pAdapterNode = NULL, *pNext = NULL; uint32_t conn_state_mask = 0; + hdd_info("WLAN being suspended by OS"); hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); diff --git a/core/hdd/src/wlan_hdd_request_manager.c b/core/hdd/src/wlan_hdd_request_manager.c index c3b29e576ed2..9382786b41b7 100644 --- a/core/hdd/src/wlan_hdd_request_manager.c +++ b/core/hdd/src/wlan_hdd_request_manager.c @@ -61,6 +61,7 @@ static void hdd_request_destroy(struct hdd_request *request) params = &request->params; if (params->dealloc) { void *priv = hdd_request_priv(request); + params->dealloc(priv); } qdf_event_destroy(&request->completed); diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index b34b8b4e826b..4ab99f1f5266 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -4575,6 +4575,7 @@ static bool wlan_hdd_update_survey_info(struct wiphy *wiphy, for (j = 0; j < wiphy->bands[i]->n_channels && !filled; j++) { struct ieee80211_supported_band *band = wiphy->bands[i]; + filled = wlan_fill_survey_result(survey, opfreq, &hdd_ctx->chan_info[idx], &band->channels[j]); diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index ddd02601041e..107659575fe3 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -8188,6 +8188,7 @@ static int __iw_setint_getnone(struct net_device *dev, case WE_SET_PHYMODE: { struct hdd_context *phddctx = WLAN_HDD_GET_CTX(adapter); + if (!hHal) return -EINVAL; @@ -8374,6 +8375,7 @@ static int __iw_setint_getnone(struct net_device *dev, { bool chwidth = false; struct hdd_context *phddctx = WLAN_HDD_GET_CTX(adapter); + if (!hHal) return -EINVAL; @@ -9012,6 +9014,7 @@ static int __iw_setint_getnone(struct net_device *dev, case WE_SET_DEBUG_LOG: { struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter); + if (!hHal) return -EINVAL; diff --git a/core/hdd/src/wlan_hdd_wowl.c b/core/hdd/src/wlan_hdd_wowl.c index 73c7eeb1f589..a59789a17540 100644 --- a/core/hdd/src/wlan_hdd_wowl.c +++ b/core/hdd/src/wlan_hdd_wowl.c @@ -50,6 +50,7 @@ static uint8_t g_hdd_wowl_ptrns_count; static inline int find_ptrn_len(const char *ptrn) { int len = 0; + while (*ptrn != '\0' && *ptrn != WOWL_INTER_PTRN_TOKENIZER) { len++; ptrn++;