android_kernel_xiaomi_sdm845/drivers/net/wireless
Bruno Randolf 281c56dd27 ath5k: correct padding in tx descriptors
when setting up the tx descriptors for the hardware we must account for any
padding between the header and the data we might have added previously. frame
len is the length of the frame in the air (including FCS but no padding) and
buffer len is the length of the buffer (including padding, but without FCS).

changing the way ah_setup_tx_desc is called: now excluding the FCS, since it's
easier to add that in the function where we need it.

before this fix we sent trailing zero bytes after the packet (because frame len
included the padding) which was not a big problem without WEP, but with WEP
this resultes in a wrong WEP checksum and the packet is discarded - which is
how i noticed at all ;)

an easy way to run into header padding problems, btw, is to connect to a QoS
(WME) enabled access point (eg. madwifi) - QoS data frames are 2 byte longer
and will require padding.

this patch applies on top of luis latest patch series from 04.02.2008.

drivers/net/wireless/ath5k/base.c:      Changes-licensed-under: 3-Clause-BSD
drivers/net/wireless/ath5k/hw.c:        Changes-licensed-under: ISC

Signed-off-by: Bruno Randolf <bruno@thinktube.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-02-15 13:44:17 -05:00
..
ath5k ath5k: correct padding in tx descriptors 2008-02-15 13:44:17 -05:00
b43 leds: Standardise LED naming scheme 2008-02-07 09:47:00 +00:00
b43legacy b43legacy: fix DMA slot resource leakage 2008-02-05 14:35:46 -05:00
bcm43xx bcm43xx annotations 2008-01-28 15:09:08 -08:00
hostap Add another Prism2 card to hostap 2008-01-31 19:26:51 -08:00
iwlwifi iwl3945-base.c: fix off-by-one errors 2008-02-05 14:35:47 -05:00
libertas Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
prism54 prism54: remove questionable down_interruptible usage 2008-01-28 15:09:12 -08:00
rt2x00 rt61pci: fix-up merge damage 2008-01-31 19:26:33 -08:00
zd1211rw mac80211: add unified BSS configuration 2008-01-28 15:09:43 -08:00
adm8211.c mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
adm8211.h [PATCH] adm8211: Use revision from pci_dev 2007-10-10 16:53:09 -07:00
airo_cs.c
airo.c airo: last of endianness annotations 2008-01-28 15:09:05 -08:00
airo.h
airport.c
arlan-main.c
arlan-proc.c
arlan.h
atmel_cs.c
atmel_pci.c
atmel.c misc wireless annotations 2008-01-28 15:09:11 -08:00
atmel.h
hermes_rid.h
hermes.c
hermes.h
i82586.h
i82593.h
ipw2100.c latency.c: use QoS infrastructure 2008-02-05 09:44:22 -08:00
ipw2100.h Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2007-10-19 20:35:20 -07:00
ipw2200.c ipw2200: do not byteswap struct ipw_associate 2008-01-28 15:09:10 -08:00
ipw2200.h ipw2200: do not byteswap struct ipw_associate 2008-01-28 15:09:10 -08:00
Kconfig Add new driver 'rndis_wlan' for wireless RNDIS devices. 2008-01-31 19:27:01 -08:00
Makefile Add new driver 'rndis_wlan' for wireless RNDIS devices. 2008-01-31 19:27:01 -08:00
net2280.h
netwave_cs.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
orinoco_cs.c
orinoco_nortel.c
orinoco_pci.c
orinoco_pci.h
orinoco_plx.c
orinoco_tmd.c
orinoco.c orinoco: always use latest BSS info when caching scan results 2008-01-28 15:05:55 -08:00
orinoco.h orinoco: more reliable scan handling 2008-01-28 15:03:32 -08:00
p54.h
p54common.c mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
p54common.h
p54pci.c p54pci: endianness annotations and fixes 2008-01-28 15:09:07 -08:00
p54pci.h p54pci: endianness annotations and fixes 2008-01-28 15:09:07 -08:00
p54usb.c drivers/net/wireless: Add missing "space" 2007-11-29 21:34:51 -05:00
p54usb.h
ray_cs.c misc wireless annotations 2008-01-28 15:09:11 -08:00
ray_cs.h long vs. unsigned long - low-hanging fruits in drivers 2007-10-14 12:41:51 -07:00
rayctl.h
rndis_wlan.c Add new driver 'rndis_wlan' for wireless RNDIS devices. 2008-01-31 19:27:01 -08:00
rtl818x.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_dev.c rtl8180_dev.c: add support for 1799:700f 2008-01-31 19:26:39 -08:00
rtl8180_grf5101.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_grf5101.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_max2820.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_max2820.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_rtl8225.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_rtl8225.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_sa2400.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_sa2400.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180.h mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
rtl8187_dev.c mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
rtl8187_rtl8225.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8187_rtl8225.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8187.h mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
spectrum_cs.c
strip.c [TTY]: Use tty_mode_ioctl() in network drivers. 2007-11-07 04:14:24 -08:00
wavelan_cs.c pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
wavelan_cs.h
wavelan_cs.p.h WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08:00
wavelan.c WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08: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
wl3501_cs.c
wl3501.h
zd1201.c [PATCH] zd1201: avoid null ptr access of skb->dev 2007-10-18 15:21:47 -04:00
zd1201.h