android_kernel_xiaomi_sdm845/drivers/net/wireless/rt2x00
Ivo van Doorn 6d64360ac5 rt2x00: Fix BUG_ON() with antenna handling
With the new configuration handling, and more specifically
splitting the configuration of the antenna from the normal
configuration steps allowed a BUG_ON() to be triggered
in the driver because the SW_DIVERSITY was send to the
driver. This fixes that by catching the value early in
rt2x00config.c and replacing it with a sensible value.

This also fixes a problem where the antenna is not being
initialized at all when the radio is enabled. Since it
no longer is part of the mac80211 configuration the
only place where rt2x00 configured it was the SW diversity
handler. Obviously this is broken for all non-diversity
hardware and breaks SW diversity due to a broken initialization.

When the radio is enabled the antenna will be configured
once as soon as the config() callback function is called.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-11-21 11:06:05 -05:00
..
Kconfig rt2x00: Fix build error when mac80211=M rt2x00=Y 2008-10-29 17:54:35 -04:00
Makefile rt2x00: Implement HW encryption 2008-08-22 16:29:58 -04:00
rt2x00.h rt2x00: Fix BUG_ON() with antenna handling 2008-11-21 11:06:05 -05:00
rt2x00config.c rt2x00: Fix BUG_ON() with antenna handling 2008-11-21 11:06:05 -05:00
rt2x00crypto.c mac80211: free up 2 bytes in skb->cb 2008-10-06 18:14:57 -04:00
rt2x00debug.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00debug.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00dev.c rt2x00: Fix BUG_ON() with antenna handling 2008-11-21 11:06:05 -05:00
rt2x00dump.h rt2x00: Queue handling overhaul 2008-02-29 15:19:27 -05:00
rt2x00firmware.c rt2x00: Reset LED assoc status after firmware update 2008-07-14 14:53:00 -04:00
rt2x00leds.c rt2x00: Fix LED state handling 2008-11-21 11:06:05 -05:00
rt2x00leds.h rt2x00: Remove MAC80211_LEDS dependency 2008-04-01 17:14:09 -04:00
rt2x00lib.h rt2x00: Fix BUG_ON() with antenna handling 2008-11-21 11:06:05 -05:00
rt2x00mac.c rt2x00: Fix BUG_ON() with antenna handling 2008-11-21 11:06:05 -05:00
rt2x00pci.c pci: use pci_ioremap_bar() in drivers/net 2008-10-31 00:53:48 -04:00
rt2x00pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00queue.c rt2x00: reduce checkpatch.pl errors 2008-10-31 19:00:40 -04:00
rt2x00queue.h mac80211/drivers: rewrite the rate control API 2008-10-31 19:00:23 -04:00
rt2x00reg.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-09-08 16:59:05 -07:00
rt2x00rfkill.c rt2x00: Fix rfkill structure initialization to prevent rfkill WARN_ON. 2008-10-06 18:14:57 -04:00
rt2x00usb.c rt2x00: skb->data pointer should not include TX descriptor 2008-08-29 16:24:12 -04:00
rt2x00usb.h rt2x00: Fix compile warning 2008-08-02 01:31:09 -07:00
rt61pci.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt61pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt73usb.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt73usb.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2400pci.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2400pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500pci.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500usb.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500usb.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00