forked from Minki/linux
ath9k_hw: disable fast channel change when changing from/to half/quarter mode
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e5d821a4ff
commit
feb7bc9951
@ -1687,6 +1687,10 @@ static int ath9k_hw_do_fastcc(struct ath_hw *ah, struct ath9k_channel *chan)
|
||||
if (chan->channel == ah->curchan->channel)
|
||||
goto fail;
|
||||
|
||||
if ((ah->curchan->channelFlags | chan->channelFlags) &
|
||||
(CHANNEL_HALF | CHANNEL_QUARTER))
|
||||
goto fail;
|
||||
|
||||
if ((chan->channelFlags & CHANNEL_ALL) !=
|
||||
(ah->curchan->channelFlags & CHANNEL_ALL))
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user