OpenCloudOS-Kernel/drivers/net/wireless
Harvey Harrison fd7c8a40b2 mac80211: add helpers for frame control testing
A few general categories:

1) ieee80211_has_* tests if particular fctl bits are set, the helpers are de
in the same order as the fctl defines:

A combined _has_a4 was also added to test when both FROMDS and TODS are set.

2) ieee80211_is_* is meant to test whether the frame control is of a certain
ftype - data, mgmt, ctl, and two special helpers _is_data_qos, _is_data_pres
which also test a subset of the stype space.

When testing for a particular stype applicable only to one ftype, functions
like ieee80211_is_ack have been added.  Note that the ftype is also being
checked in these helpers.  They have been added for all mgmt and ctl stypes
in the same order as the STYPE defines.

3) ieee80211_get_* is meant to take a struct ieee80211_hdr * and returns a
pointer to somewhere in the struct, see get_SA, get_DA, get_qos_ctl.

The intel wireless drivers had helpers that used this namespace, convert the
all to use the new helpers and remove the byteshifting as they were defined
in cpu-order rather than little-endian.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-06-14 12:18:12 -04:00
..
ath5k ath5k: use IEEE80211_SKB_CB 2008-06-03 15:00:16 -04:00
b43 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-06-10 02:22:26 -07:00
b43legacy Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-06-10 02:22:26 -07:00
hostap hostap_cs: add ID for Conceptronic CON11CPro 2008-05-20 17:55:30 -04:00
iwlwifi mac80211: add helpers for frame control testing 2008-06-14 12:18:12 -04:00
libertas libertas: rename some registers to clarify their meaning 2008-06-14 12:18:04 -04:00
p54 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-06-10 02:22:26 -07:00
prism54 prism54: fix regression with missing carrier in AP-mode 2008-05-12 21:18:04 -04:00
rt2x00 rt2x00: Rework alignment check. 2008-06-14 12:17:59 -04:00
zd1211rw Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-06-10 02:22:26 -07:00
Kconfig mac80211_hwsim: 802.11 radio simulator for mac80211 2008-06-14 12:18:11 -04:00
Makefile mac80211_hwsim: 802.11 radio simulator for mac80211 2008-06-14 12:18:11 -04:00
adm8211.c mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00
adm8211.h mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00
airo.c airo: use simple_read_from_buffer() 2008-06-14 12:17:59 -04:00
airo.h
airo_cs.c
airport.c
arlan-main.c arlan: use netstats in net_device structure 2008-05-14 16:29:48 -04:00
arlan-proc.c arlan: fix warning when PROC_FS=n 2008-03-24 19:25:08 -04:00
arlan.h arlan: use netstats in net_device structure 2008-05-14 16:29:48 -04:00
atmel.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-06-10 02:22:26 -07:00
atmel.h
atmel_cs.c
atmel_pci.c
hermes.c
hermes.h
hermes_rid.h
i82586.h
i82593.h
ipw2100.c latency.c: use QoS infrastructure 2008-02-05 09:44:22 -08:00
ipw2100.h
ipw2200.c ipw2200: queue direct scans 2008-06-09 15:50:16 -04:00
ipw2200.h ipw2200: queue direct scans 2008-06-09 15:50:16 -04:00
mac80211_hwsim.c mac80211_hwsim: Shared TX code for received frames and Beacons 2008-06-14 12:18:12 -04:00
netwave_cs.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
orinoco.c orinoco: always use latest BSS info when caching scan results 2008-01-28 15:05:55 -08:00
orinoco.h
orinoco_cs.c orinoco_cs: add ID for SpeedStream wireless adapters 2008-05-20 17:55:30 -04:00
orinoco_nortel.c
orinoco_pci.c
orinoco_pci.h
orinoco_plx.c
orinoco_tmd.c
ray_cs.c proc: switch /proc/driver/ray_cs/ray_cs to seq_file interface 2008-04-16 15:59:56 -04:00
ray_cs.h
rayctl.h
rndis_wlan.c rndis_wlan: Use kernel-supplied ARRAY_SIZE() macro. 2008-06-14 12:18:11 -04:00
rtl818x.h cfg80211 API for channels/bitrates, mac80211 and driver conversion 2008-02-29 15:19:32 -05:00
rtl8180.h cfg80211 API for channels/bitrates, mac80211 and driver conversion 2008-02-29 15:19:32 -05:00
rtl8180_dev.c mac80211: use multi-queue master netdevice 2008-05-21 21:48:14 -04:00
rtl8180_grf5101.c rtl8180: fix wrong parameter in grf5101_rf_set_channel 2008-05-28 16:43:40 -04:00
rtl8180_grf5101.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_max2820.c rtl8180: fix wrong parameter in max2820_rf_set_channel 2008-05-28 16:43:39 -04:00
rtl8180_max2820.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_rtl8225.c cfg80211 API for channels/bitrates, mac80211 and driver conversion 2008-02-29 15:19:32 -05:00
rtl8180_rtl8225.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_sa2400.c rtl8180: fix wrong parameter in sa2400_rf_set_channel 2008-05-28 16:43:38 -04:00
rtl8180_sa2400.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8187.h mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00
rtl8187_dev.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2008-06-10 01:54:31 -07:00
rtl8187_rtl8225.c cfg80211 API for channels/bitrates, mac80211 and driver conversion 2008-02-29 15:19:32 -05:00
rtl8187_rtl8225.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
spectrum_cs.c
strip.c strip: Fix termios assumption 2008-05-12 07:27:38 -07:00
wavelan.c wavelan: avoid index past end of array if DEBUG_SHOW_UNUSED is defined 2008-05-12 21:18:05 -04:00
wavelan.h wavelan: mark hardware interfacing structures as packed 2008-02-15 13:44:17 -05:00
wavelan.p.h WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08:00
wavelan_cs.c wavelan: avoid index past end of array if DEBUG_SHOW_UNUSED is defined 2008-05-12 21:18:05 -04:00
wavelan_cs.h wavelan_cs arm fix 2008-03-24 19:25:07 -04:00
wavelan_cs.p.h wavelan_cs: stop inlining largish static functions 2008-04-08 15:05:57 -04:00
wl3501.h
wl3501_cs.c
zd1201.c
zd1201.h