From 2f760a045556183fae7d4056aa090c33ef3735e0 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Fri, 7 Dec 2012 06:34:46 +0000 Subject: [PATCH] Add a new 900MHz GSM regulatory SKU for the Xagyl Communications XC900M. The XC900M acts as a Ubiquiti XR9 (and I _think_ SR9) by default; it uses the same 900MHz<->2.4GHz downconverter mapping. However it has an alternative frequency mapping which squeezes in a couple more half/quarter rate channels. Since the default HAL doesn't support fractional tuning (sub-1MHz) in 2.4GHz mode on the AR5413/AR5414, they implement it using a jumper. Datasheet: http://www.xagyl.com/download/XC900M_Datasheet.pdf Thankyou to Xagyl Communications for the XC900M NICs and Edgar Martinez for organising the donation. Tested: * XC900M <-> XC900M * Ubiquiti XR9 <-> XC900M TODO: * Test against SR9 and GZ901 if possible (the IEEE channel<->frequency mapping may not match up, thanks to the slightly different channels involved) --- etc/regdomain.xml | 42 ++++++++++++++++++++++++++++++ sys/net80211/ieee80211_regdomain.h | 11 ++++++++ 2 files changed, 53 insertions(+) diff --git a/etc/regdomain.xml b/etc/regdomain.xml index ff5711392c45..126f03a289e4 100644 --- a/etc/regdomain.xml +++ b/etc/regdomain.xml @@ -1303,6 +1303,29 @@ + + + XC900M + 0x29b + + + + 30 + IEEE80211_CHAN_G + + + + 30 + IEEE80211_CHAN_G + + + + 30 + IEEE80211_CHAN_G + + + + @@ -1896,6 +1919,25 @@ IEEE80211_CHAN_GSM + + 905 925 + 5 5 + IEEE80211_CHAN_GSM + IEEE80211_CHAN_QUARTER + + + 910 920 + 10 5 + IEEE80211_CHAN_GSM + IEEE80211_CHAN_HALF + + + 915 915 + 20 5 + IEEE80211_CHAN_GSM + + + diff --git a/sys/net80211/ieee80211_regdomain.h b/sys/net80211/ieee80211_regdomain.h index 8942dd9870d0..cfb31463502e 100644 --- a/sys/net80211/ieee80211_regdomain.h +++ b/sys/net80211/ieee80211_regdomain.h @@ -258,6 +258,17 @@ enum RegdomainCode { SKU_SR9 = 0x0298, /* Ubiquiti SR9 (900MHz/GSM) */ SKU_XR9 = 0x0299, /* Ubiquiti XR9 (900MHz/GSM) */ SKU_GZ901 = 0x029a, /* Zcomax GZ-901 (900MHz/GSM) */ + SKU_XC900M = 0x029b, /* Xagyl XC900M (900MHz/GSM) */ + /* + * The XC900M by default uses the + * same mapping as the XR9. It + * can optionally use a slightly + * offset channel spacing (905MHz- + * 925MHz) versus the XR9 (907MHz- + * 922MHz), giving an extra channel. + * This requires a jumper on the + * NIC to be changed. + */ }; #if defined(__KERNEL__) || defined(_KERNEL)