Skip to content

Commit

Permalink
rtl8723bu: Initialize entire sinfo array
Browse files Browse the repository at this point in the history
After looking at another Realtek driver, it is clear that the entire
struct, not just pertid, should be initialized.

Signed-off-by: Larry Finger <[email protected]>
  • Loading branch information
lwfinger committed May 8, 2019
1 parent 8529bbf commit 79270f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_dep/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3307,7 +3307,7 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
else // WIFI_REASSOCREQ
ie_offset = _REASOCREQ_IE_OFFSET_;

sinfo.pertid = NULL;
memset(&sinfo, 0, sizeof(sinfo));
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;
Expand Down

0 comments on commit 79270f6

Please sign in to comment.