Jae Woo Song Posted November 10, 2016 Share Posted November 10, 2016 Hi, I have some problem about softAp mode.I am using orangepi+ and, Armbian debian jessie server 5.20version. I want to connect web page using SmartPhone. and connect other AP(Client ap mode).so i set dhcpd server. and hostapd.But, If i use "sudo iwlist wlan scan" command , kernel is rebooting with panic.. how can i set hostapd.? It's my setting. /etc/hostapd.conf ctrl_interface=/var/run/hostapdctrl_interface_group=0macaddr_acl=0auth_algs=1ignore_broadcast_ssid=0wpa=2wpa_pairwise=TKIPrsn_pairwise=CCMPwpa_passphrase=12345678driver=nl80211wme_enabled=1wpa_group_rekey=86400interface=wlan0hw_mode=gchannel=6ssid=TEST_AP /etc/network/interfaces allow-hotplug eth0iface eth0 inet dhcp auto loiface lo inet loopback allow-hotplug wlan0iface wlan0 inet static address 192.168.150.1 netmask 255.255.255.0 /etc/dhcp/dhcpd.conf the last line add this contents subnet 192.168.150.0 netmask 255.255.255.0 { range 192.168.150.100 192.168. 150.199; option broadcast-address 192.168. 150.255; option routers 192.168.150.1; default-lease-time 600; max-lease-time 7200; option domain-name "local"; option domain-name-servers 8.8.8.8, 168.126.63.1;} thanks.. Link to comment Share on other sites More sharing options...
Tido Posted November 10, 2016 Share Posted November 10, 2016 Hi, these were the commands that helped me to get my system up. You will have to adjust some paths that it fits to your installation. check your config file: hostapd-rt -dd /etc/hostapd/hostapd.conf is the service running? service hostapd status and some more to see if a service runs twice, logs, ps ax | grep [h]ostapd | grep -v grep less /var/log/daemon.log iw list find / name hostapd hope this supports you in finding the bug. Cheers Tido Link to comment Share on other sites More sharing options...
zador.blood.stained Posted November 10, 2016 Share Posted November 10, 2016 check your config file: hostapd-rt -dd /etc/hostapd/hostapd.conf In newer Armbian versions instead of hostapd-rt binary there is separate hostapd-realtek package that needs to be installed instead of default one. Link to comment Share on other sites More sharing options...
Jae Woo Song Posted November 23, 2016 Author Share Posted November 23, 2016 ok, i remove hostapd and install hostapd-realtek #apt-get remove --purge hostapd #apt-get install hostapd-realtek #nano /etc/hostapd.conf ctrl_interface=/var/run/hostapdctrl_interface_group=0macaddr_acl=0auth_algs=1ignore_broadcast_ssid=0driver=rtl871xdrvinterface=wlan0hw_mode=gchannel=6ssid=TEST_AP # hostapd -dd /etc/hostapd.confrandom: Trying to read entropy from /dev/randomConfiguration file: /etc/hostapd.confctrl_interface_group=0drv->ifindex=4l2_sock_recv==l2_sock_xmit=0x0xb82f96e0BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBmAllowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBmAllowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=52 freq=5260 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=56 freq=5280 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=60 freq=5300 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=64 freq=5320 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=100 freq=5500 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=104 freq=5520 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=108 freq=5540 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=112 freq=5560 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=116 freq=5580 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=120 freq=5600 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=124 freq=5620 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=128 freq=5640 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=132 freq=5660 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=136 freq=5680 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=140 freq=5700 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=0 dBmAllowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBmCompleting interface initializationMode: IEEE 802.11g Channel: 6 Frequency: 2437 MHzDFS 0 channels required radar detectionRATE[0] rate=10 flags=0x1RATE[1] rate=20 flags=0x1RATE[2] rate=55 flags=0x1RATE[3] rate=110 flags=0x1RATE[4] rate=60 flags=0x0RATE[5] rate=90 flags=0x0RATE[6] rate=120 flags=0x0RATE[7] rate=180 flags=0x0RATE[8] rate=240 flags=0x0RATE[9] rate=360 flags=0x0RATE[10] rate=480 flags=0x0RATE[11] rate=540 flags=0x0hostapd_setup_bss(hapd=0xb82fb498 (wlan0), first=1)wlan0: Flushing old station entrieswlan0: Deauthenticate all stations+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2rtl871x_set_key_opsrtl871x_set_key_opsrtl871x_set_key_opsrtl871x_set_key_opsUsing interface wlan0 with hwaddr 00:6c:fd:26:40:ed and ssid "TEST_AP"rtl871x_set_wps_assoc_resp_iertl871x_set_wps_beacon_iertl871x_set_wps_probe_resp_iertl871x_set_beacon_opsrtl871x_set_hidden_ssid_opsioctl[RTL_IOCTL_HOSTAPD]: Invalid argumentwlan0: interface state UNINITIALIZED->ENABLEDwlan0: AP-ENABLEDwlan0: Setup of interface done.ctrl_iface not configured!random: Got 20/20 bytes from /dev/random #ps ax | grep [h]ostapd | grep -v grep 1668 pts/0 S+ 0:00 hostapd -dd /etc/hostapd.conf And finally, #sudo iwlist wlan0 scan Message from syslogd@hanamicronGw at Nov 23 19:09:45 ... kernel:[ 689.779053] sunxi oops: enable sdcard JTAG interfacewlan0 Scan completed : Cell 01 - Address: 00:27:1C:3C:52:DA ESSID:"miniWiFi_3C2D" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.412 GHz (Channel 1) Encryption key:on Bit Rates:72 Mb/s Extra:wpa_ie=dd1a0050f20101000050f20202000050f2020050f20401000050f202 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK IE: Unknown: DD8D0050F204104A0001101044000102103B000103104700106304125310192006122800271C3C52D91021000B4D65726375727920436F2E1023000A4B4D30312D32313246501024000641505F31314E104200114D435253323031323132303030303031301054000800060050F20400011011000A4B4D30312D323132465010080002268E1049000600372A000120 Quality=100/100 Signal level=74/100 Extra:fm=0003 Cell 02 - Address: A4:6C:2A:A8:64:62 ESSID:"BeaconZone" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.412 GHz (Channel 1) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=100/100 Signal level=100/100 Extra:fm=0003 Cell 03 - Address: A4:6C:2A:A8:64:61 ESSID:"IotGuest" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.412 GHz (Channel 1) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=100/100 Signal level=100/100 Extra:fm=0003 Cell 04 - Address: A4:6C:2A:A8:64:60 ESSID:"" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.412 GHz (Channel 1) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=0/100 Signal level=100/100 Extra:fm=0001 Cell 05 - Address: 00:6C:FD:26:60:EA ESSID:"AniMonitorV04" Protocol:IEEE 802.11bg Mode:Master Frequency:2.437 GHz (Channel 6) Encryption key:on Bit Rates:54 Mb/s Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=20/100 Signal level=90/100 Extra:fm=0003 Cell 06 - Address: 24:D1:3F:10:2A:FD ESSID:"mLTE7679" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.437 GHz (Channel 6) Encryption key:on Bit Rates:72 Mb/s Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=36/100 Signal level=72/100 Extra:fm=0003 Cell 07 - Address: 90:9F:33:EE:B6:9F ESSID:"HANAMICRON_C57E" Protocol:IEEE 802.11bg Mode:Master Frequency:2.437 GHz (Channel 6) Encryption key:on Bit Rates:54 Mb/s Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=48/100 Signal level=88/100 Extra:fm=0003 Cell 08 - Address: 00:26:66:D5:22:64 ESSID:"" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.427 GHz (Channel 4) Encryption key:on Bit Rates:300 Mb/s Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202 IE: WPA Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: DD0E0050F204104A0001101044000102 Quality=100/100 Signal level=84/100 Extra:fm=0001 Cell 09 - Address: 80:E0:1D:D7:C3:00 ESSID:"" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.437 GHz (Channel 6) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=100/100 Signal level=56/100 Extra:fm=0001 Cell 10 - Address: 80:E0:1D:D7:C3:02 ESSID:"BeaconZone" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.437 GHz (Channel 6) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=0/100 Signal level=56/100 Extra:fm=0003 Cell 11 - Address: 90:9F:33:A9:1D:7E ESSID:"Device_Test" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.452 GHz (Channel 9) Encryption key:on Bit Rates:300 Mb/s Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: DD740050F204104A0001101044000102103B000103104700100000000000000000000000000000000010210006697054494D4510230008697054494D4541501024000A313233343536373839301042000232321054000800060050F204000110110008697054494D454150100800020084103C000103 Quality=36/100 Signal level=96/100 Extra:fm=0003 Cell 12 - Address: 90:9F:33:EC:74:B8 ESSID:"HanamicronGW_143D" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.452 GHz (Channel 9) Encryption key:on Bit Rates:72 Mb/s Extra:wpa_ie=dd1a0050f20101000050f20202000050f2040050f20201000050f202 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : CCMP TKIP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=100/100 Signal level=100/100 Extra:fm=0003 Cell 13 - Address: 80:E0:1D:BD:45:92 ESSID:"BeaconZone" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.462 GHz (Channel 11) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=48/100 Signal level=70/100 Extra:fm=0003 Cell 14 - Address: 80:E0:1D:BD:45:91 ESSID:"IotGuest" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.462 GHz (Channel 11) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=36/100 Signal level=70/100 Extra:fm=0003 Cell 15 - Address: 64:E5:99:4C:2E:B0 ESSID:"Gateway2.5_TestAp" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.462 GHz (Channel 11) Encryption key:on Bit Rates:300 Mb/s Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202 IE: WPA Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: DD9E0050F204104A0001101044000102103B0001031047001063041253101920061228AABBCCDDEEFF1021001B5265616C74656B2053656D69636F6E647563746F7220436F72702E1023000752544C387878781024000D45562D323030392D30322D30361042000F3132333435363738393031323334371054000800060050F2040001101100135265616C74656B20576972656C657373204150100800020080 Quality=20/100 Signal level=100/100 Extra:fm=0003 Cell 16 - Address: 80:E0:1D:BD:45:90 ESSID:"" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.462 GHz (Channel 11) Encryption key:on Bit Rates:144 Mb/s Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (2) : TKIP CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=0/100 Signal level=74/100 Extra:fm=0001 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] sunxi oops: cpu frequency: 480 MHz Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] sunxi oops: ddr frequency: 672 MHz Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] sunxi oops: gpu frequency: 105 MHz Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] sunxi oops: cpu temperature: 53 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] Internal error: Oops: 17 [#1] PREEMPT SMP ARM Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] Process RTW_CMD_THREAD (pid: 469, stack limit = 0xee2f42f8) Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] Stack: (0xee2f5f30 to 0xee2f6000) Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] 5f20: f01e85e0 f01e85e8 bf0b74b0 ee464200 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] 5f40: f01e7000 f01e85e0 ee2f5f74 ee2f5f58 bf025870 bf016ba4 ee061540 f01e7000 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] 5f60: f01e85b8 f01e85e0 ee2f5fb4 ee2f5f78 bf004b5c bf0257f4 00000000 f01e85cc Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] 5f80: f01e8610 ee464200 00000013 ee2c79d4 f01e7000 bf0048e4 00000013 00000000 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] 5fa0: 00000000 00000000 ee2f5ff4 ee2f5fb8 c0049c58 bf0048f0 00000000 00000000 Message from syslogd@hanamicronGw at Nov 23 19:09:47 ... kernel:[ 689.789027] 5fc0: f01e7000 00000001 00000000 00000000 ee2f5fd0 ee2f5fd0 00000000 ee2c79d4 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] 5fe0: c0049bc4 c000f1b0 00000000 ee2f5ff8 c000f1b0 c0049bd0 00000000 00000000 Message from syslogd@orangepiplus at Nov 23 19:09:47 ... kernel:[ 689.789027] Code: e3530000 1370001c 0a00000c e5942daa (e5903064) but Kernel panic occured.. i don't know this reason... Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts