Commit b2f72cae authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_xmit.c: Use IEEE80211_[FS]TYPE_ defines

In addition pkt_attrib->type a u16 and get rid of pattrib->stype
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d280584
...@@ -422,7 +422,7 @@ static void set_qos(struct sk_buff *skb, struct pkt_attrib *pattrib) ...@@ -422,7 +422,7 @@ static void set_qos(struct sk_buff *skb, struct pkt_attrib *pattrib)
pattrib->priority = UserPriority; pattrib->priority = UserPriority;
pattrib->hdrlen = sizeof(struct ieee80211_qos_hdr); pattrib->hdrlen = sizeof(struct ieee80211_qos_hdr);
pattrib->subtype = WIFI_QOS_DATA_TYPE; pattrib->type = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_DATA;
} }
static int update_attrib(struct rtw_adapter *padapter, static int update_attrib(struct rtw_adapter *padapter,
...@@ -537,7 +537,7 @@ static int update_attrib(struct rtw_adapter *padapter, ...@@ -537,7 +537,7 @@ static int update_attrib(struct rtw_adapter *padapter,
pattrib->pkt_hdrlen = ETH_HLEN; pattrib->pkt_hdrlen = ETH_HLEN;
pattrib->hdrlen = sizeof(struct ieee80211_hdr_3addr); pattrib->hdrlen = sizeof(struct ieee80211_hdr_3addr);
pattrib->subtype = WIFI_DATA_TYPE; pattrib->type = IEEE80211_FTYPE_DATA;
pattrib->priority = 0; pattrib->priority = 0;
if (check_fwstate(pmlmepriv, WIFI_AP_STATE | WIFI_ADHOC_STATE | if (check_fwstate(pmlmepriv, WIFI_AP_STATE | WIFI_ADHOC_STATE |
...@@ -895,9 +895,9 @@ static int rtw_make_wlanhdr(struct rtw_adapter *padapter, u8 *hdr, ...@@ -895,9 +895,9 @@ static int rtw_make_wlanhdr(struct rtw_adapter *padapter, u8 *hdr,
memset(hdr, 0, WLANHDR_OFFSET); memset(hdr, 0, WLANHDR_OFFSET);
SetFrameSubType(fctrl, pattrib->subtype); pwlanhdr->frame_control = cpu_to_le16(pattrib->type);
if (pattrib->subtype & WIFI_DATA_TYPE) { if (pattrib->type & IEEE80211_FTYPE_DATA) {
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)) { if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)) {
/* to_ds = 1, fr_ds = 0; */ /* to_ds = 1, fr_ds = 0; */
/* Data transfer to AP */ /* Data transfer to AP */
......
...@@ -114,8 +114,7 @@ struct hw_xmit { ...@@ -114,8 +114,7 @@ struct hw_xmit {
/* reduce size */ /* reduce size */
struct pkt_attrib { struct pkt_attrib {
u8 type; u16 type;
u8 subtype;
u8 bswenc; u8 bswenc;
u8 dhcp_pkt; u8 dhcp_pkt;
u16 ether_type; u16 ether_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment