# ifconfig ath0_wlan0 destroy# ifconfig wlan0 create wlandev ath0 wlanmode hostap# ifconfig wlan0 name ath0_wlan0# ifconfig ath0_wlan0 list caps drivercaps=4f8def41<STA,FF,IBSS,PMGT,HOSTAP,AHDEMO,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,MBSS,WPA1,WPA2,BURST,WME,WDS,TXFRAG>...# ifconfig ath0_wlan0 inet 192.168.2.1 netmask 255.255.255.0 ssid myssid mode 11g channel 6
ath0_wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 04:f0:21:96:b5:fc inet6 fe80::6f0:21ff:fe96:b5fc%ath0_wlan0 prefixlen 64 scopeid 0x8 inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 groups: wlan ssid myssid channel 6 (2437 MHz 11g) bssid 04:f0:21:96:b5:fc regdomain FCC country US ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap> status: running nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>ath0_wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 04:f0:21:96:b5:fc inet 192.168.3.1 netmask 0xffffff00 broadcast 192.168.3.255 inet6 fe80::6f0:21ff:fe96:b5fc%ath0_wlan1 prefixlen 64 scopeid 0x9 groups: wlan ssid myotherssid channel 9 (2452 MHz 11g ht/40-) bssid 04:f0:21:96:b5:fc regdomain FCC country US ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi -ldpc wme burst dtimperiod 1 -dfs media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap> status: running nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
ath0_wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 04:f0:21:96:b5:fc groups: wlan ssid "" channel 6 (2437 MHz 11g) regdomain FCC country US ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs bintval 0 media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (autoselect <hostap>) status: no carrier nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
<opt2> <if>ath0_wlan0</if> <descr>WIFI</descr> <enable>1</enable> <spoofmac/> <ipaddr>192.168.2.1</ipaddr> <subnet>24</subnet> </opt2>
# grep -r myssid /etc # grep -r myssid /usr/local/etc#
<wireless> <clone> <if>ath0</if> <mode>hostap</mode> <descr></descr> <cloneif>ath0_wlan0</cloneif> </clone> <clone> <if>ath0</if> <mode>hostap</mode> <descr></descr> <cloneif>ath0_wlan1</cloneif> </clone> <interfaces> <ath0> <standard>11ng</standard> <protmode>off</protmode> <channel>4</channel> <distance></distance> <regdomain>etsi</regdomain> <regcountry>CH</regcountry> <reglocation>indoor</reglocation> </ath0> </interfaces> </wireless>
<wireless> <clone/> </wireless>
<input type="hidden" name="mode" value="<?=isset($pconfig['mode']) ? $pconfig['mode'] : 'bss' ?>" />
<opt2> <if>ath0_wlan0</if> <wireless> <channel>4</channel> <protmode>off</protmode> <regcountry>CH</regcountry> <regdomain>etsi</regdomain> <reglocation>indoor</reglocation> <standard>11ng</standard> <mode>hostap</mode> <wpa> <macaddr_acl/> <auth_algs>1</auth_algs> <wpa_mode>2</wpa_mode> <wpa_key_mgmt>WPA-PSK</wpa_key_mgmt> <wpa_pairwise>CCMP TKIP</wpa_pairwise> <wpa_group_rekey>60</wpa_group_rekey> <wpa_gmk_rekey>3600</wpa_gmk_rekey> <passphrase>mypassphrase</passphrase> <ext_wpa_sw/> <ieee8021x/> <enable>1</enable> </wpa> <wme/> <wep> <key/> </wep> <hidessid/> <pureg> <enable>1</enable> </pureg> <puren/> <ieee8021x/> <ssid>myssid</ssid> <authmode/> <txpower/> <auth_server_addr/> <auth_server_port/> <auth_server_shared_secret/> <auth_server_addr2/> <auth_server_port2/> <auth_server_shared_secret2/> <apbridge/> <turbo/> </wireless> <descr>WIFI</descr> <enable>1</enable> <spoofmac/> <ipaddr>192.168.2.1</ipaddr> <subnet>24</subnet> </opt2>