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 428 620 050 246 233 440 752 070 578 208 438 442 724 470 380 616 300 710 250 348 756 703 826 352 528 196 372 705860100152 702008 214 096 320 484 086 084 840 630 591554 512 060 044 446 344 356170 124400458040780 492 203 792 788 268 191 818604 360 156 364 608158410 862 858 408392398 643 887 586 376 414 634 504 764 422 784 642 340 188 682 222 804 760 218 112 010 704 716 807
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 - Worst viewed with MSIE, because it sucks. - Firefox is ok though. - stopsoftwarepatents.eu petition banner