mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-04-05 17:09:42 +00:00
switch to common ieee80211 headers
This patch switches to <linux/ieee80211.h> and <net/cfg80211.h> and deletes a lot of duplicate definitions plus many unused ones. rtw_ieee80211_hdr_3addr_qos is duplicate of ieee80211_qos_hdr. rtw_ieee80211_spectrum_mgmt_actioncode is a duplication of ieee80211_spectrum_mgmt_actioncode rtw_ieee80211_hdr_3addr is duplicate of ieee80211_hdr_3addr. rtw_ieee80211_hdr is duplicate of ieee80211_hdr rtw_ieee80211s_hdr is duplicate of ieee80211s_hdr rtw_ieee80211_rann_ie is duplicate of ieee80211_rann_ie from include/linux/ieee80211.h. Link: https://lore.kernel.org/r/20200906133236.556427-1-insafonov@gmail.com Link: https://lore.kernel.org/r/20200609194848.166130-1-pterjan@google.com Also port 5cd8396540b5f7ef7c3ac499e967dd4deb8e9930 bbfe286b07d8282f4957dee692e85b3bd60de770 d87f574d6923c546e7d0f75ce0581436376b98a6 36eb7d108e8de3097f373eb8629d8739d4fa3e74 1b9e6df5169b36b3242e2e28c39f9bbfc01863e8 d94971aa97670d400371baef5d9d5cf6dc8ea2b5
This commit is contained in:
@@ -177,7 +177,7 @@ void _rtw_free_recv_priv(struct recv_priv *precvpriv)
|
||||
bool rtw_rframe_del_wfd_ie(union recv_frame *rframe, u8 ies_offset)
|
||||
{
|
||||
#define DBG_RFRAME_DEL_WFD_IE 0
|
||||
u8 *ies = rframe->u.hdr.rx_data + sizeof(struct rtw_ieee80211_hdr_3addr) + ies_offset;
|
||||
u8 *ies = rframe->u.hdr.rx_data + sizeof(struct ieee80211_hdr_3addr) + ies_offset;
|
||||
uint ies_len_ori = rframe->u.hdr.len - (ies - rframe->u.hdr.rx_data);
|
||||
uint ies_len;
|
||||
|
||||
@@ -1762,7 +1762,7 @@ static sint validate_mgmt_protect(_adapter *adapter, union recv_frame *precv_fra
|
||||
} else {
|
||||
RTW_INFO(FUNC_ADPT_FMT" bmc:%u, action(%u), privacy:%u, encrypt:%u, bdecrypted:%u\n"
|
||||
, FUNC_ADPT_ARG(adapter), is_bmc
|
||||
, *(ptr + sizeof(struct rtw_ieee80211_hdr_3addr))
|
||||
, *(ptr + sizeof(struct ieee80211_hdr_3addr))
|
||||
, pattrib->privacy, pattrib->encrypt, pattrib->bdecrypted);
|
||||
}
|
||||
}
|
||||
@@ -1775,7 +1775,7 @@ static sint validate_mgmt_protect(_adapter *adapter, union recv_frame *precv_fra
|
||||
}
|
||||
|
||||
if (subtype == IEEE80211_STYPE_ACTION)
|
||||
category = *(ptr + sizeof(struct rtw_ieee80211_hdr_3addr));
|
||||
category = *(ptr + sizeof(struct ieee80211_hdr_3addr));
|
||||
|
||||
if (is_bmc) {
|
||||
/* broadcast cases */
|
||||
@@ -1873,7 +1873,7 @@ bip_verify:
|
||||
/* cases to decrypt mgmt frame */
|
||||
pattrib->bdecrypted = 0;
|
||||
pattrib->encrypt = _AES_;
|
||||
pattrib->hdrlen = sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
pattrib->hdrlen = sizeof(struct ieee80211_hdr_3addr);
|
||||
|
||||
/* set iv and icv length */
|
||||
SET_ICE_IV_LEN(pattrib->iv_len, pattrib->icv_len, pattrib->encrypt);
|
||||
@@ -3049,7 +3049,7 @@ int amsdu_to_msdu(_adapter *padapter, union recv_frame *prframe)
|
||||
#ifdef CONFIG_RTW_MESH
|
||||
if (MLME_IS_MESH(padapter)) {
|
||||
u8 *mda = pdata, *msa = pdata + ETH_ALEN;
|
||||
struct rtw_ieee80211s_hdr *mctrl = (struct rtw_ieee80211s_hdr *)(pdata + ETH_HLEN);
|
||||
struct ieee80211s_hdr *mctrl = (struct ieee80211s_hdr *)(pdata + ETH_HLEN);
|
||||
int v_ret;
|
||||
|
||||
v_ret = rtw_mesh_rx_data_validate_mctrl(padapter, prframe
|
||||
@@ -3167,7 +3167,7 @@ static int recv_process_mpdu(_adapter *padapter, union recv_frame *prframe)
|
||||
act = rtw_mesh_rx_msdu_act_check(prframe
|
||||
, pattrib->mda, pattrib->msa
|
||||
, pattrib->dst, pattrib->src
|
||||
, (struct rtw_ieee80211s_hdr *)(get_recvframe_data(prframe) + pattrib->hdrlen + pattrib->iv_len)
|
||||
, (struct ieee80211s_hdr *)(get_recvframe_data(prframe) + pattrib->hdrlen + pattrib->iv_len)
|
||||
, &fwd_frame, &b2u_list);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user