From 8c1b6f68f05ca87967f4a5507c54b33efeaca493 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 19 Sep 2019 11:42:27 +0000 Subject: [PATCH] cfg80211: Fixed unallocated stats --- os_dep/linux/ioctl_cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index df44d06..d0aea67 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4481,6 +4481,7 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f sinfo.filled = STATION_INFO_ASSOC_REQ_IES; sinfo.assoc_req_ies = pmgmt_frame + WLAN_HDR_A3_LEN + ie_offset; sinfo.assoc_req_ies_len = frame_len - WLAN_HDR_A3_LEN - ie_offset; + cfg80211_sinfo_alloc_tid_stats(&sinfo, GFP_KERNEL); cfg80211_new_sta(ndev, get_addr2_ptr(pmgmt_frame), &sinfo, GFP_ATOMIC); } #else /* defined(RTW_USE_CFG80211_STA_EVENT) */