Skip to content

Commit

Permalink
Avoids a kernel oops when the WiFi interface is in AP mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
hehopmajieh authored and stefansaraev committed Sep 29, 2020
1 parent 740094b commit c6f2558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,7 @@ void rtw_cfg80211_indicate_sta_assoc(struct adapter *padapter, u8 *pmgmt_frame,
ie_offset = _REASOCREQ_IE_OFFSET_;

sinfo.filled = 0;
sinfo.pertid = 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_new_sta(ndev, GetAddr2Ptr(pmgmt_frame), &sinfo, GFP_ATOMIC);
Expand Down

0 comments on commit c6f2558

Please sign in to comment.