1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 07:22:25 +02:00

madwifi: trivial antenna diversity fix

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16846 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-07-14 16:07:26 +00:00
parent 0b0c78e9a5
commit d6dcc3e2ad

View File

@ -61,7 +61,7 @@
- /* XXX block beacon interrupts */
- ath_hal_setdiversity(ah, (sc->sc_diversity != 0));
ath_hal_setdefantenna(ah, antenna);
+ ath_hal_setantennaswitch(ah, sc->sc_diversity ? 0 : sc->sc_defant);
+ ath_hal_setantennaswitch(ah, sc->sc_diversity ? 0 : antenna);
if (sc->sc_defant != antenna)
sc->sc_stats.ast_ant_defswitch++;
sc->sc_defant = antenna;