diff options
author | hiren <hiren@FreeBSD.org> | 2014-02-23 18:07:17 +0000 |
---|---|---|
committer | hiren <hiren@FreeBSD.org> | 2014-02-23 18:07:17 +0000 |
commit | 1dd3d84818d03eb35e6b13fd2c6bda54baec829e (patch) | |
tree | a7968b52fba8814434698a8a03184bd51c899608 /sys/dev/ath/ath_hal/ah_regdomain.c | |
parent | 3c9c635c3b66e71a5594d24b122727dd590b1ec1 (diff) | |
download | FreeBSD-src-1dd3d84818d03eb35e6b13fd2c6bda54baec829e.zip FreeBSD-src-1dd3d84818d03eb35e6b13fd2c6bda54baec829e.tar.gz |
PicoStation M2HP presents reg domain 0x2a which is not found in atheros or linux
reference code. Add this workaround for now.
Reviewed by: adrian
Diffstat (limited to 'sys/dev/ath/ath_hal/ah_regdomain.c')
-rw-r--r-- | sys/dev/ath/ath_hal/ah_regdomain.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah_regdomain.c b/sys/dev/ath/ath_hal/ah_regdomain.c index 807db44..fb0c841 100644 --- a/sys/dev/ath/ath_hal/ah_regdomain.c +++ b/sys/dev/ath/ath_hal/ah_regdomain.c @@ -169,6 +169,11 @@ isEepromValid(struct ath_hal *ah) if (regDomainPairs[i].regDmnEnum == rd) return AH_TRUE; } + + if (rd == FCC_UBNT) { + return AH_TRUE; + } + HALDEBUG(ah, HAL_DEBUG_REGDOMAIN, "%s: invalid regulatory domain/country code 0x%x\n", __func__, rd); return AH_FALSE; |