Hi,
the commit "regulatory: add NUL to request alpha2" in linux-next-20180302 causes a regression with brcmfmac (Platform: Raspberry Pi 3 B). During driver probe i will get this error:
brcmfmac: brcmf_cfg80211_reg_notifier: not an ISO3166 code (0x44 0x45)
But 0x44 0x45 ( = DE ) is a valid ISO3166 code.
The reason for this behavior is that the function checks the complete array, not just the first 2 elements.
IMO at least the functions brcmf_cfg80211_reg_notifier() and brcmf_translate_country_code() should be fixed.
Regards
Stefan