mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2025-08-16 08:34:15 +02:00
remove warnings and add initialization for struct
This commit is contained in:
parent
9caa953809
commit
9c4e000fba
@ -2254,7 +2254,7 @@ static int rtw_cfg80211_set_key_mgt(struct security_priv *psecuritypriv, u32 key
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen)
|
||||
static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, const u8 *pie, size_t ielen)
|
||||
{
|
||||
u8 *buf=NULL, *pos=NULL;
|
||||
u32 left;
|
||||
@ -3031,7 +3031,12 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
|
||||
ie_offset = _ASOCREQ_IE_OFFSET_;
|
||||
else // WIFI_REASSOCREQ
|
||||
ie_offset = _REASOCREQ_IE_OFFSET_;
|
||||
|
||||
|
||||
// the next 2 lines are taken from another rtl driver
|
||||
// in the other driver the BIT(17) was a #define
|
||||
sinfo.filled = 0;
|
||||
sinfo.filled = BIT(17);
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user