summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 20:17:57 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 20:17:57 +0200
commit85bdc5b94c8a1730d3077f361297028cfd8b9b78 (patch)
treea6835c355fde8ce9f36c808dbb9b50809d3c77f4 /package/base-files
parent6e0004f572f23810c21d5fb4477d8b9347dffdbb (diff)
downloadmtk-20170518-mtk-20170518.zip
mtk-20170518-mtk-20170518.tar.gz
mtk-20170518-mtk-20170518.tar.bz2
MTK mt76 hwnat implementationHEADmtk-20170518
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh4
-rwxr-xr-xpackage/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh4
-rwxr-xr-xpackage/base-files/files/usr/sbin/hwnat-disable.sh4
-rwxr-xr-xpackage/base-files/files/usr/sbin/hwnat-enable.sh4
4 files changed, 16 insertions, 0 deletions
diff --git a/package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh b/package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh
new file mode 100755
index 0000000..3837e88
--- /dev/null
+++ b/package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh
@@ -0,0 +1,4 @@
+iwpriv ra0 set hw_nat_register=0
+iwpriv rax0 set hw_nat_register=0
+rmmod hw_nat.ko
+
diff --git a/package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh b/package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh
new file mode 100755
index 0000000..c0fd623
--- /dev/null
+++ b/package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh
@@ -0,0 +1,4 @@
+insmod /lib/modules/ralink/hw_nat.ko
+iwpriv ra0 set hw_nat_register=1
+iwpriv rax0 set hw_nat_register=1
+
diff --git a/package/base-files/files/usr/sbin/hwnat-disable.sh b/package/base-files/files/usr/sbin/hwnat-disable.sh
new file mode 100755
index 0000000..3837e88
--- /dev/null
+++ b/package/base-files/files/usr/sbin/hwnat-disable.sh
@@ -0,0 +1,4 @@
+iwpriv ra0 set hw_nat_register=0
+iwpriv rax0 set hw_nat_register=0
+rmmod hw_nat.ko
+
diff --git a/package/base-files/files/usr/sbin/hwnat-enable.sh b/package/base-files/files/usr/sbin/hwnat-enable.sh
new file mode 100755
index 0000000..c0fd623
--- /dev/null
+++ b/package/base-files/files/usr/sbin/hwnat-enable.sh
@@ -0,0 +1,4 @@
+insmod /lib/modules/ralink/hw_nat.ko
+iwpriv ra0 set hw_nat_register=1
+iwpriv rax0 set hw_nat_register=1
+