remove typedefs in ieee80211.h

This commit fixes checkpatch.pl warnings:

also port the folowing commits
5ef6c5db04ffff21006099961c3c8acc5727b2c8
74941703accd4a94e7a74c31050d7985216b7034
7d0b4f3c9300f43b65125115f5728e1a5d39e270
This commit is contained in:
Carlos Garces
2021-10-21 19:46:49 +02:00
parent 86199d0791
commit 34f947ef16
4 changed files with 14 additions and 79 deletions

View File

@@ -2447,7 +2447,7 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
}
if (pkt_len < IEEE80211_3ADDR_LEN + ie_offset) {
if (pkt_len < sizeof(struct ieee80211_hdr_3addr) + ie_offset) {
RTW_INFO("handle_assoc(reassoc=%d) - too short payload (len=%lu)"
"\n", reassoc, (unsigned long)pkt_len);
return _FAIL;
@@ -2501,8 +2501,8 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
}
/* now parse all ieee802_11 ie to point to elems */
left = pkt_len - (IEEE80211_3ADDR_LEN + ie_offset);
pos = pframe + (IEEE80211_3ADDR_LEN + ie_offset);
left = pkt_len - (sizeof(struct ieee80211_hdr_3addr) + ie_offset);
pos = pframe + (sizeof(struct ieee80211_hdr_3addr) + ie_offset);
if (rtw_ieee802_11_parse_elems(pos, left, &elems, 1) == ParseFailed) {
RTW_INFO("STA " MAC_FMT " sent invalid association request\n",
MAC_ARG(pstat->cmn.mac_addr));