···4446444644474447#ifdef CONFIG_IPW2200_QOS44484448#define IPW_GET_PACKET_STYPE(x) WLAN_FC_GET_STYPE( \44494449- le16_to_cpu(((struct ieee80211_hdr *)(x))->frame_ctl))44494449+ le16_to_cpu(((struct ieee80211_hdr *)(x))->frame_control))44504450 if ((priv->status & STATUS_AUTH) &&44514451 (IPW_GET_PACKET_STYPE(¬if->u.raw)44524452 == IEEE80211_STYPE_ASSOC_RESP)) {···76657665 u16 fc;7666766676677667 hdr = (struct ieee80211_hdr *)skb->data;76687668- fc = le16_to_cpu(hdr->frame_ctl);76687668+ fc = le16_to_cpu(hdr->frame_control);76697669 if (!(fc & IEEE80211_FCTL_PROTECTED))76707670 return;7671767176727672 fc &= ~IEEE80211_FCTL_PROTECTED;76737673- hdr->frame_ctl = cpu_to_le16(fc);76737673+ hdr->frame_control = cpu_to_le16(fc);76747674 switch (priv->ieee->sec.level) {76757675 case SEC_LEVEL_3:76767676 /* Remove CCMP HDR */···79827982 }7983798379847984 hdr = (void *)rxb->skb->data + IPW_RX_FRAME_SIZE;79857985- if (ieee80211_is_management(le16_to_cpu(hdr->frame_ctl))) {79857985+ if (ieee80211_is_management(le16_to_cpu(hdr->frame_control))) {79867986 if (filter & IPW_PROM_NO_MGMT)79877987 return;79887988 if (filter & IPW_PROM_MGMT_HEADER_ONLY)79897989 hdr_only = 1;79907990- } else if (ieee80211_is_control(le16_to_cpu(hdr->frame_ctl))) {79907990+ } else if (ieee80211_is_control(le16_to_cpu(hdr->frame_control))) {79917991 if (filter & IPW_PROM_NO_CTL)79927992 return;79937993 if (filter & IPW_PROM_CTL_HEADER_ONLY)79947994 hdr_only = 1;79957995- } else if (ieee80211_is_data(le16_to_cpu(hdr->frame_ctl))) {79957995+ } else if (ieee80211_is_data(le16_to_cpu(hdr->frame_control))) {79967996 if (filter & IPW_PROM_NO_DATA)79977997 return;79987998 if (filter & IPW_PROM_DATA_HEADER_ONLY)···80108010 ipw_rt = (void *)skb->data;8011801180128012 if (hdr_only)80138013- len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl));80138013+ len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_control));8014801480158015 memcpy(ipw_rt->payload, hdr, len);80168016···82308230 /* Comment this line now since we observed the card receives82318231 * duplicate packets but the FCTL_RETRY bit is not set in the82328232 * IBSS mode with fragmentation enabled.82338233- BUG_ON(!(le16_to_cpu(header->frame_ctl) & IEEE80211_FCTL_RETRY)); */82338233+ BUG_ON(!(le16_to_cpu(header->frame_control) & IEEE80211_FCTL_RETRY)); */82348234 return 1;82358235}82368236···10381103811038210382 /* Filtering of fragment chains is done agains the first fragment */1038310383 hdr = (void *)txb->fragments[0]->data;1038410384- if (ieee80211_is_management(le16_to_cpu(hdr->frame_ctl))) {1038410384+ if (ieee80211_is_management(le16_to_cpu(hdr->frame_control))) {1038510385 if (filter & IPW_PROM_NO_MGMT)1038610386 return;1038710387 if (filter & IPW_PROM_MGMT_HEADER_ONLY)1038810388 hdr_only = 1;1038910389- } else if (ieee80211_is_control(le16_to_cpu(hdr->frame_ctl))) {1038910389+ } else if (ieee80211_is_control(le16_to_cpu(hdr->frame_control))) {1039010390 if (filter & IPW_PROM_NO_CTL)1039110391 return;1039210392 if (filter & IPW_PROM_CTL_HEADER_ONLY)1039310393 hdr_only = 1;1039410394- } else if (ieee80211_is_data(le16_to_cpu(hdr->frame_ctl))) {1039410394+ } else if (ieee80211_is_data(le16_to_cpu(hdr->frame_control))) {1039510395 if (filter & IPW_PROM_NO_DATA)1039610396 return;1039710397 if (filter & IPW_PROM_DATA_HEADER_ONLY)···10406104061040710407 if (hdr_only) {1040810408 hdr = (void *)src->data;1040910409- len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl));1040910409+ len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_control));1041010410 } else1041110411 len = src->len;1041210412
···88#ifndef LIB80211_H99#define LIB80211_H10101111+#include <linux/ieee80211.h>1212+1113/* print_ssid() is intended to be used in debug (and possibly error)1214 * messages. It should never be used for passing ssid to user space. */1315const char *print_ssid(char *buf, const char *ssid, u8 ssid_len);1414-#define DECLARE_SSID_BUF(var) char var[32 * 4 + 1] __maybe_unused1616+#define DECLARE_SSID_BUF(var) char var[IEEE80211_MAX_SSID_LEN * 4 + 1] __maybe_unused15171618#endif /* LIB80211_H */