Atheros makes nice 802.11 cards, but the current driver contains an outdated and restrictive layer called ath_hal that limits the number of channels available according to what countrycode is passed to it.
It's all well and good to have some help in staying inside the law, but when that help arrives as a binary only blob that has wrong ideas about what the law says it just falls apart and becomes a broken mess.
I want to use channel 160, something which is quite legal in .dk due to changes to the law done several years ago, but the blob doesn't let me, so I need to change the countrycode to something that will give the channel I need, but my Google-fu was weak and I was unable to find a page that maps from channels and back to country codes, so I had to write my own little script to try all existing countries and store the channel list for each one.
Because the only thing I hate more than wasting 40 minutes on messing around with an outdated binary only blob is wasting 40 minutes and seeing others waste the same 40 minutes down the line I have posted the data here:
channel vs. countrycode= | Frequency | 276 440 348 724 246 470 050 380 756 428 300 442 438 578 752 528 372 208 620 070 826 616 352 196 233 705 703 710 250 | 860 | 100 | 702 152 | 320 214 630 591 008 086 096 084 484 840 | 512 060 344 554 446 356 044 | 124 170 | 400 | 458 | 040 | 818 792 268 780 203 788 191 492 | 364 360 608 604 156 | 158 | 408 862 410 858 | 392 | 376 682 398 704 340 634 010 807 643 804 504 642 112 414 887 586 764 716 784 218 188 422 222 760 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 2.412 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
2 | 2.417 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
3 | 2.422 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
4 | 2.427 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
5 | 2.432 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
6 | 2.437 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
7 | 2.442 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
8 | 2.447 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
9 | 2.452 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
10 | 2.457 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
11 | 2.462 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
12 | 2.467 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||
13 | 2.472 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||
14 | 2.484 GHz | Yes | |||||||||||||||
34 | 5.17 GHz | Yes | |||||||||||||||
36 | 5.18 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||||
38 | 5.19 GHz | Yes | |||||||||||||||
40 | 5.2 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||||
42 | 5.21 GHz | Yes | Yes | Yes | Yes | ||||||||||||
44 | 5.22 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||||
46 | 5.23 GHz | Yes | |||||||||||||||
48 | 5.24 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||||
50 | 5.25 GHz | Yes | Yes | Yes | |||||||||||||
52 | 5.26 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||||
56 | 5.28 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | |||||
58 | 5.29 GHz | Yes | Yes | Yes | |||||||||||||
60 | 5.3 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||
64 | 5.32 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||
100 | 5.5 GHz | Yes | Yes | Yes | |||||||||||||
104 | 5.52 GHz | Yes | Yes | Yes | |||||||||||||
108 | 5.54 GHz | Yes | Yes | Yes | |||||||||||||
112 | 5.56 GHz | Yes | Yes | Yes | |||||||||||||
116 | 5.58 GHz | Yes | Yes | Yes | |||||||||||||
120 | 5.6 GHz | Yes | Yes | Yes | |||||||||||||
124 | 5.62 GHz | Yes | Yes | Yes | |||||||||||||
128 | 5.64 GHz | Yes | Yes | Yes | |||||||||||||
132 | 5.66 GHz | Yes | Yes | Yes | |||||||||||||
136 | 5.68 GHz | Yes | Yes | Yes | |||||||||||||
140 | 5.7 GHz | Yes | Yes | ||||||||||||||
149 | 5.745 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||
152 | 5.76 GHz | Yes | Yes | ||||||||||||||
153 | 5.765 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||
157 | 5.785 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||
160 | 5.8 GHz | Yes | Yes | ||||||||||||||
161 | 5.805 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | ||||||
165 | 5.825 GHz | Yes | Yes | Yes | Yes | Yes | Yes | Yes |