--- zzzz-none-000/linux-3.10.107/drivers/net/wireless/ath/carl9170/phy.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/wireless/ath/carl9170/phy.c 2021-02-04 17:41:59.000000000 +0000 @@ -994,7 +994,7 @@ refsel0 = 0; refsel1 = 1; } - chansel = byte_rev_table[chansel]; + chansel = bitrev8(chansel); } else { if (freq == 2484) { chansel = 10 + (freq - 2274) / 5; @@ -1002,7 +1002,7 @@ } else chansel = 16 + (freq - 2272) / 5; chansel *= 4; - chansel = byte_rev_table[chansel]; + chansel = bitrev8(chansel); } d1 = chansel; @@ -1139,7 +1139,6 @@ default: return -EINVAL; - break; } for (; i >= 0; i--) {