ath: clean up ath_reg_apply_active_scan_flags()
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Mon, 21 Oct 2013 17:14:48 +0000 (19:14 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 20:40:10 +0000 (15:40 -0500)
commitbc0aa0691806dc30cf1a69fe50ae90cf8f752977
treebc0556f1a74b604b53e46af804c83c12982649b8
parentd44040de6a991999b466adefc7588e479680b98d
ath: clean up ath_reg_apply_active_scan_flags()

The routine ath_reg_apply_active_scan_flags() can be a bit
hard to read, this cleans it up by adding helpers for the
two cases of clearing IR flags or adding them. This approach
also makes no assumptions on the index of channels 12 and 13
so it should be portable accross different drivers.

Cc: smihir@qti.qualcomm.com
Cc: tushnimb@qca.qualcomm.com
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/regd.c