编译Gargoyle

make custom
make FULL_BUILD=true custom
cd custom-src && make menuconfig && make V=99

custom-src/package/kernel/mac80211/files/lib/wifi/mac80211.sh

option disabled 1改成0,默认开启wifi。
option disabled 0下添加
option htmode HT40+
option channel 1
option country CN
option noscan 1
option txpower 17

http://blog.chinaunix.net/uid-25631578-id-4009228.html

    option ssid 'Just-I'
    option encryption 'psk2'
    option key 'ubin.top'

编译OpenWrt之前 编辑 .config文件 搜索 “CONFIG_ATH_USER_REGD” 字符串
搜索到后把前面的 “#” 删掉 改成 CONFIG_ATH_USER_REGD=y
然后在去编译吧
编译好并刷机后,手动吧国家code代码改成CN 然后保存重启,就能看到13信道了,当然你也可以编译前设置国家code为CN,具体方法找度娘吧。
kmod-ath

以Atheros 芯片路由器为例:
编译的时候make menuconfig
进入:Kernel Modules - Wireless Drivers - Kmod-ath - Force Atheros drivers to respect the user’s regdomain settings. 选上。
保存设置,编译。
刷固件。
Luci中国家选择中国并保存(Save and Apply)
这样就可以使用1-13频道了

custom-src/tools/firmware-utils/src/mktplinkfw.c
custom-src/target/linux/ar71xx/image/Makefile
custom-src/package/base-files/files/etc/config/network
custom-src/package/base-files/files/etc/config/system

config system
option hostname Just-I
option timezone CST-8
option zonename Asia/Shanghai

custom-src/package/base-files/files/lib/functions/uci-defaults.sh

custom-src/.config

custom-src/package/gargoyle/files/etc/config/gargoyle
package/gargoyle/files/etc/config/gargoyle
option theme ‘Theme by matei’

个性化编译openwrt(编译前更改lan.ipaddr,ssid,timezone,root密码)

barrier_breaker_base
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/base 预置
barrier_breaker_management
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/management 预置
barrier_breaker_packages
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/packages 预置
barrier_breaker_routing
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/routing 预置
barrier_breaker_telephony
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/packages/telephony 预置
gargoyle
http://www.gargoyle-router.com/packages/gargoyle-1.8.1/ar71xx/default 预置