[OpenWrt-Devel] Custom build with reghack on trunk or any branch

Jenny Cabrera Varona jenny.cabrera at reduc.edu.cu
Thu Jul 20 00:00:58 EDT 2017


Thanks very much for your time Alexander Couzens ...
Right now reghack.mips.elf file it's inside my new firmware, when i check
if everything inside my device it's fine, i can see this ...

#ls -al /lib/wifi/
-rw-r--r--    1 root     root          2718 Jul 20 03:20 mac80211.sh
-rwxr-xr-x    1 root     root         46156 Jun  4  2016 reghack.mips.elf

(OK)

# cat /etc/init.d/boot
...

grep -i -q mips /proc/cpuinfo && REGHACK=reghack.mips.elf
       grep -i -q freescale /proc/cpuinfo && REGHACK=reghack.ppc.elf

       # Install regdomain hack
       if [ ! -f /etc/.regd ]; then
         cd /lib/wifi
         ./$REGHACK /lib/modules/*/ath.ko
         ./$REGHACK /lib/modules/*/cfg80211.ko
         touch /etc/.regd
       fi
...

(OK)

###########################################
# What's happening here?
# reghack patch doesn't work?
###########################################

# cd /lib/wifi
# ./reghack.mips.elf /lib/modules/*/ath.ko
mmap(): Invalid argument
Memory mapping failed (missing fs support?), retrying from tmpfs
Unable to find regulatory rules (already patched?)

# ./reghack.mips.elf /lib/modules/*/cfg80211.ko
mmap(): Invalid argument
Memory mapping failed (missing fs support?), retrying from tmpfs
Unable to find regulatory rules (already patched?)
####################################

# iw reg get
country US: DFS-FCC
	(2402 - 2472 @ 40), (N/A, 30), (N/A)
	(5170 - 5250 @ 80), (N/A, 23), (N/A)
	(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS
	(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
	(5735 - 5835 @ 80), (N/A, 30), (N/A)
	(57240 - 63720 @ 2160), (N/A, 40), (N/A)

(BAD???)

# iw list
	* 2412 MHz [1] (21.0 dBm)
	* 2417 MHz [2] (26.0 dBm)
	* 2422 MHz [3] (26.0 dBm)
	* 2427 MHz [4] (26.0 dBm)
	* 2432 MHz [5] (26.0 dBm)
	* 2437 MHz [6] (26.0 dBm)
	* 2442 MHz [7] (26.0 dBm)
	* 2447 MHz [8] (26.0 dBm)
	* 2452 MHz [9] (26.0 dBm)
	* 2457 MHz [10] (26.0 dBm)
	* 2462 MHz [11] (21.0 dBm)
	* 2467 MHz [12] (disabled)
	* 2472 MHz [13] (disabled)
	* 2484 MHz [14] (disabled)

(BAD???)

why channel 2412 MHz [1] and 2462 MHz [11] with 21 dbm? and others 26dbm?
i would like enable negative channels from 2312-2484 MHz

please i need your help

-----------------------------------------------------------------
---- Universidad de Camagüey "Ignacio Agramonte Loynaz", Cuba ---
-----------------------------------------------------------------
---- https://intranet.reduc.edu.cu/ -----------------------------
---- https://www.reduc.edu.cu/ ----------------------------------
-----------------------------------------------------------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list