Skip to content

Commit

Permalink
cfg80211: Fixed unallocated stats
Browse files Browse the repository at this point in the history
  • Loading branch information
fastiuk committed Sep 10, 2019
1 parent 77471b4 commit 5f2c143
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os_dep/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2948,6 +2948,7 @@ void rtw_cfg80211_indicate_sta_assoc(struct adapter *padapter, u8 *pmgmt_frame,
sinfo.filled = 0;
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, GetAddr2Ptr(pmgmt_frame), &sinfo, GFP_ATOMIC);
}
}
Expand Down

3 comments on commit 5f2c143

@lwfinger
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will not build with kernels older than 4.18.

@fastiuk
Copy link
Author

@fastiuk fastiuk commented on 5f2c143 Oct 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I faced also that. here is a branch that I tested on kernel 4.9.8. It is without my changes for kernel > 4.18

@fastiuk
Copy link
Author

@fastiuk fastiuk commented on 5f2c143 Oct 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that you fixed the build error already. That is great, thank you. Sorry for breaking v4.1.8 build.

Please sign in to comment.