Merge pull request #289 from yevfast/dev-yevfast-v4.1.8_9499-memory-fix

cfg80211: Fixed unallocated stats
This commit is contained in:
lwfinger 2019-09-10 14:16:10 -05:00 committed by GitHub
commit ff948555a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2948,6 +2948,7 @@ void rtw_cfg80211_indicate_sta_assoc(struct adapter *padapter, u8 *pmgmt_frame,
sinfo.filled = 0; sinfo.filled = 0;
sinfo.assoc_req_ies = pmgmt_frame + WLAN_HDR_A3_LEN + ie_offset; 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; 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, GetAddr2Ptr(pmgmt_frame), &sinfo, GFP_ATOMIC); cfg80211_new_sta(ndev, GetAddr2Ptr(pmgmt_frame), &sinfo, GFP_ATOMIC);
} }
} }