ath9k: Fix symbol overlap window for half/quarter channels
authorHelmut Schaa <helmut.schaa@googlemail.com>
Fri, 29 Apr 2016 13:06:34 +0000 (15:06 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 9 May 2016 18:12:01 +0000 (21:12 +0300)
commit41842dc1f072d69ca40f36ce5032ccfd23488f51
treee6b1e25219d7d06c2adfba466d9b16c070fa7c0d
parentb0291715d31c891bcb5de936271881f58600f7c1
ath9k: Fix symbol overlap window for half/quarter channels

Since commit cd6cfd7311a385144a2f9c74f692ae2df3ae033f
"ath9k: do not set half/quarter channel flags in AR_PHY_MODE" the
condition "rfMode & (AR_PHY_MODE_QUARTER | AR_PHY_MODE_HALF)" would
never evaluate to true.

Fix this by using the available IS_CHAN_HALF_RATE and IS_CHAN_QUARTER_RATE
marcros instead.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9003_phy.c