Also many of the WiFi drivers have such crazy firmware because they're actually (at least partly) software defined radios and thus each country needs a slightly different flavor and that's related to regulations and testing.
Everything would be much easier if we could just have some part of the UN that every country agrees to follow manage a universal spectrum allocation and anyone that disagrees should just expect all of the electronics to break.