The problem with binary blobs

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=Frequency276 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 250860100702 152320 214 630 591 008 086 096 084 484 840512 060 344 554 446 356 044124 170400458040818 792 268 780 203 788 191 492364 360 608 604 156158408 862 410 858392376 682 398 704 340 634 010 807 643 804 504 642 112 414 887 586 764 716 784 218 188 422 222 760
12.412 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
22.417 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
32.422 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
42.427 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
52.432 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
62.437 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
72.442 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
82.447 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
92.452 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
102.457 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
112.462 GHzYesYesYesYesYesYesYesYesYesYesYesYesYesYesYesYes
122.467 GHzYesYesYesYesYesYesYesYesYesYesYesYes
132.472 GHzYesYesYesYesYesYesYesYesYesYesYesYes
142.484 GHzYes
345.17 GHzYes
365.18 GHzYesYesYesYesYesYesYesYesYes
385.19 GHzYes
405.2 GHzYesYesYesYesYesYesYesYesYes
425.21 GHzYesYesYesYes
445.22 GHzYesYesYesYesYesYesYesYesYes
465.23 GHzYes
485.24 GHzYesYesYesYesYesYesYesYesYes
505.25 GHzYesYesYes
525.26 GHzYesYesYesYesYesYesYesYesYes
565.28 GHzYesYesYesYesYesYesYesYesYesYesYes
585.29 GHzYesYesYes
605.3 GHzYesYesYesYesYesYesYesYesYesYes
645.32 GHzYesYesYesYesYesYesYesYesYesYes
1005.5 GHzYesYesYes
1045.52 GHzYesYesYes
1085.54 GHzYesYesYes
1125.56 GHzYesYesYes
1165.58 GHzYesYesYes
1205.6 GHzYesYesYes
1245.62 GHzYesYesYes
1285.64 GHzYesYesYes
1325.66 GHzYesYesYes
1365.68 GHzYesYesYes
1405.7 GHzYesYes
1495.745 GHzYesYesYesYesYesYesYesYesYesYes
1525.76 GHzYesYes
1535.765 GHzYesYesYesYesYesYesYesYesYesYes
1575.785 GHzYesYesYesYesYesYesYesYesYesYes
1605.8 GHzYesYes
1615.805 GHzYesYesYesYesYesYesYesYesYesYes
1655.825 GHzYesYesYesYesYesYesYes
© Flemming Frandsen