mirror of https://github.com/proski/madwifi
Fix for r1106. Perform HAL reset twice, once with chanchange = TRUE and once without.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2831 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
39aeb2e4e2
commit
1d4d9ddb6b
|
@ -7905,7 +7905,14 @@ ath_chan_set(struct ath_softc *sc, struct ieee80211_channel *chan)
|
||||||
else
|
else
|
||||||
ath_hal_setcoverageclass(sc->sc_ah, ic->ic_coverageclass, 0);
|
ath_hal_setcoverageclass(sc->sc_ah, ic->ic_coverageclass, 0);
|
||||||
|
|
||||||
if (!ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_TRUE, &status)) {
|
/* MT: ath_hal_reset with chanchange = AH_TRUE doesn't seem to
|
||||||
|
* completely reset the state of the card. According to
|
||||||
|
* reports from ticket #1106, kismet and aircrack people they
|
||||||
|
* needed to do the reset with chanchange = AH_FALSE in order
|
||||||
|
* to receive traffic when peforming high velocity channel
|
||||||
|
* changes. */
|
||||||
|
if (!ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_TRUE, &status) ||
|
||||||
|
!ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_FALSE, &status)) {
|
||||||
printk("%s: %s: unable to reset channel %u (%u MHz) "
|
printk("%s: %s: unable to reset channel %u (%u MHz) "
|
||||||
"flags 0x%x '%s' (HAL status %u)\n",
|
"flags 0x%x '%s' (HAL status %u)\n",
|
||||||
DEV_NAME(dev), __func__,
|
DEV_NAME(dev), __func__,
|
||||||
|
|
Loading…
Reference in New Issue