Developing lightweight computation at the DSG edge

Commit 39b8cbff authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Add regdbus.sh snippet for International Waterus

parent 26d22430
#!/bin/bash
. options.conf
base_feed="$feeds_dir/base"
echo "Patch will be applied to $base_feed"
[ ! -d $base_feed ] && {
echo "$base_feed does not exist. Before applying this snippet you must clone the feeds (option -f of cooker)"
exit 1
}
patch_file="$PWD/$tmp_dir/regdb.patch"
cat > $patch_file << EOF
diff --git a/package/kernel/mac80211/files/regdb.txt b/package/kernel/mac80211/files/regdb.txt
index d583887602..99a79a1080 100644
--- a/package/kernel/mac80211/files/regdb.txt
+++ b/package/kernel/mac80211/files/regdb.txt
@@ -1214,12 +1214,8 @@ country UG: DFS-FCC
(5735 - 5835 @ 80), (30)
country US: DFS-FCC
- (2402 - 2472 @ 40), (30)
- # 5.15 ~ 5.25 GHz: 30 dBm for master mode, 23 dBm for clients
- (5170 - 5250 @ 80), (23), AUTO-BW
- (5250 - 5330 @ 80), (23), DFS, AUTO-BW
- (5490 - 5730 @ 160), (23), DFS
- (5735 - 5835 @ 80), (30)
+ (2402 - 2483.5 @ 40), (30)
+ (5150 - 5835 @ 80), (30)
# 60g band
# reference: http://cfr.regstoday.com/47cfr15.aspx#47_CFR_15p255
# channels 1,2,3, EIRP=40dBm(43dBm peak)
EOF
( cd $base_feed && git apply $patch_file && {
echo "Patch applied, now you can use the special country US when you deploy a mesh network on International Waters"
} || echo "Patch does not apply, maybe it is already applied or LEDE source has changed" )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment