[MAC80211]: improved short preamble handling
authorDaniel Drake <dsd@gentoo.org>
Fri, 27 Jul 2007 13:43:24 +0000 (15:43 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:47:38 +0000 (16:47 -0700)
commit7e9ed18874f0df84b6651f0636e1cfdac43bc610
tree7bac6083031a48e488c0de5bf71e7f9398e0e011
parentd5d08def9216c445339c5a24a2cdc9cc2c8c13f7
[MAC80211]: improved short preamble handling

Similarly to CTS protection, whether short preambles are used for 802.11b
transmissions should be a per-subif setting, not device global.

For STAs, this patch makes short preamble handling automatic based on the ERP
IE. For APs, hostapd still uses the prism ioctls, but the write ioctl has been
restricted to AP-only subifs.

ieee80211_txrx_data.short_preamble (an unused field) was removed.

Unfortunately, some API changes were required for the following functions:
 - ieee80211_generic_frame_duration
 - ieee80211_rts_duration
 - ieee80211_ctstoself_duration
 - ieee80211_rts_get
 - ieee80211_ctstoself_get
Affected drivers were updated accordingly.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: Jiri Benc <jbenc@suse.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl8187.h
drivers/net/wireless/rtl8187_dev.c
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/ieee80211_ioctl.c
net/mac80211/ieee80211_sta.c
net/mac80211/tx.c
net/mac80211/util.c