|
发表于 2022-2-28 11:44:09
只看该作者
地板
[root@RV1126_RV1109:/]# cd /usr/bin
[root@RV1126_RV1109:/usr/bin]# killall wpa_supplicant dnsmasq hostapd
Signal 15 received - terminating
hostapd_interface_deinit_free(0x9e5a0)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x9e5a0)
wlan1: interface state ENABLED->DISABLED
[root@RV1[126_RV1109:/usr/bin]# hostapd _bss_deinit: deinit bss wlan 1
wlan1: Deauthenticate all 2stations
45.454905] CFGP2P-ERROR) wl_cfgp2p_disable_discovery :
[ 245.454910] do nothing, not initialized
[ 245.454976] Exit. P2P interface stopped
[ 245.455351] [dhd-wlan0] wl_cfg80211_disconnect : Reason 3
[ 245.455369] dhd_dbg_stop_pkt_monitor, 1963
[ 245.465582] [dhd-wlan0] wl_iw_event : disconnected with f8:8c:21:ba:1c:e2, event 11, reason 8
[ 245.465939] [dhd-wlan0] wl_ext_iapsta_event : [S] Link down with f8:8c:21:ba:1c:e2, WLC_E_DISASSOC(11), reason 8
[ 245.466011] [dhd-wlan0] wl_iw_event : Link Down with f8:8c:21:ba:1c:e2, reason=2
[ 245.466049] [dhd-wlan0] wl_ext_iapsta_event : [S] Link down with f8:8c:21:ba:1c:e2, WLC_E_LINK(16), reason 2
[ 245.466090] [dhd] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK
[ 245.466140] [dhd-wlan0] wl_notify_connect_status : link down if wlan0 may call cfg80211_disconnected. event : 16, reason=2 from f8:8c:21:ba:1c:e2
[ 245.466164] dhd_dbg_stop_pkt_monitor, 1963
[ 245.682602] [dhd-wlan1] wl_cfg80211_del_station : Disconnect STA ff:ff:ff:ff:ff:ff scb_val.val 3
nl80211: sta_remove -> DEL_STATION wlan1 ff:ff:ff:ff:ff:ff --> 0 (Success)
wlan1: AP-DISABLED
hostapd_cleanup(hapd=0xa03f0 (wlan1))
hostapd_free_hapd_data(wlan1)
hostapd_interface_deinit_free: driver=0x7e528 drv_priv=0xa61f8 -> hapd_deinit
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
nl80211: Disable Probe Request reporting nl_preq=0x88828629
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=6)
netlink: Operstate: ifindex=6 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 6 iftype 2 (STATION)
[ 245.716031] [dhd] CFG80211-ERROR) wl_bss_iovar_war : wl bss 2
nl80211: Teardown AP(wlan1) - device_ap_sme=1 use_monitor=0
nl80211: Unsubscribe mgmt frames handle 0x8882e921 (AP teardown (dev SME))
hostapd_interface_free(0x9e5a0)
hostapd_interface_free: free hapd 0xa03f0
hostapd_cleanup_iface(0x9e5a0)
hostapd_cleanup_iface_partial(0x9e5a0)
hostapd_cleanup_iface: free iface=0x9e5a0
[root@RV1126_RV1109:/usr/bin]# ./softapDemo soft-ap &
[root@RV1126_RV1109:/usr/bin]# DEBUG 287:
softap_version: 1.0
DEBUG 261: Can't open /sys/class/rkwifi/chip, errno = 2DEBUG 290:
wifi type:
DEBUG 33: cmdline = killall dnsmasq
killall: dnsmasq: no process killed
DEBUG 33: cmdline = killall hostapd
killall: hostapd: no process killed
DEBUG 33: cmdline = killall udhcpc
killall: udhcpc: no process killed
DEBUG 322: start softap with name: soft-ap---DEBUG 33: cmdline = ifconfig wlan1 down
DEBUG 33: cmdline = rm -rf /userdata/bin/wlan1
DEBUG 33: cmdline = iw dev wlan1 del
[ 272.662101] deleting interface 'wlan1' idx 1
[ 272.662105] dhd_rx_frame: interface is deleted. Free event packet
[ 272.662542] Cannot find ifidx for(wlan1) set to 0
[ 272.665008] Cannot find ifidx for(wlan1) set to 0
[ 272.683234] dhd_get_stats: BAD_IF
DEBUG 33: cmdline = ifconfig wlan0 up
DEBUG 33: cmdline = iw phy0 interface add wlan1 type managed
[ 272.728566] [dhd] CFG80211-ERROR) wl_bss_iovar_war : wl bss 2
[ 272.729699] [dhd] CFG80211-ERROR) wl_cfg80211_event : ignore event 54, not interested
[ 272.730084] [dhd] CFG80211-ERROR) wl_cfg80211_post_ifcreate : Applying updated mac address to firmware
[ 272.731803] Register interface [wlan1] MAC: 72:4a:0e:d3:58:20
[ 272.731803]
DEBUG 33: cmdline = killall dnsmasq
killall: dnsmasq: no process killed
DEBUG 33: cmdline = ifconfig wlan1 up
DEBUG 33: cmdline = ifconfig wlan1 192.168.88.1 netmask 255.255.255.0
DEBUG 33: cmdline = dnsmasq -p 88 -C /userdata/bin/dnsmasq.conf --interface=wlan1
DEBUG 33: cmdline = hostapd -d /userdata/bin/hostapd.conf &
random: Trying to read entropy from /dev/random
Configuration file: /userdata/bin/hostapd.conf
nl80211: TDLS supported
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-90-4c:0
nl80211: Using driver-based off-channel TX
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=2
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=3
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4096
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4097
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4098
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4099
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4104
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4102
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4100
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4105
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4352
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4353
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4354
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4355
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4356
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4357
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4106
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4107
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4108
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4110
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4608
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4111
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4112
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4113
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4114
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4115
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4116
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5120
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5127
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5121
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5122
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5123
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5124
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5125
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5126
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5130
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5131
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5132
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5632
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5633
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=6144
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=6145
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4119
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4118
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4120
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=5133
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=0
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=1
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=2
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=3
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=4
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=5
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=6
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=7
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=8
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=9
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=10
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=11
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=12
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=13
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=14
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=15
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=16
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=17
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=18
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=19
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=20
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=21
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=22
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=23
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=24
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=25
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=26
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=27
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=28
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=29
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=30
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=31
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=32
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=33
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=34
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=35
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=36
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=37
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=38
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=39
nl80211: Supported vendor event: vendor_id=0x1a11 subcmd=40
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: use P2P_DEVICE support
nl80211: interface wlan1 in phy phy0
nl80211: Set mode ifindex 7 iftype 3 (AP)
nl80211: Setup AP(wlan1) - device_ap_sme=1 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0xa61a8 (device SME)
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa61a8 match=7f
nl80211: Enable Probe Request reporting nl_preq=0xa0ea0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0xa0ea0 match=
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 7 (ifidx_reason -1)
nl80211: if_indices[16]: 7(-1)
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
Completing interface initialization
Mode: IEEE 802.11g Channel: 6 Frequency: 2437 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2437 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2437 MHz, cf2=0 MHz)
* freq=2437
* vht_enabled=0
* ht_enabled=0
* channel_type=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0xa03f0 (wlan1), first=1)
wlan1: Flushing old station entries
nl80211: flush -> DEL_STATION wlan1 (all)
wlan1: Deauthenticate all stations
[ 272.899348] [dhd-wlan1] wl_cfg80211_del_station : Disconnect STA ff:ff:ff:ff:ff:ff scb_nl80211: sta_remove -> DEL_STvATION wlan1 ff:ff:ff:ff:ff:faf --> 0 (Success)
wpa_driverl_nl80211_set_key: ifindex=7. (wlan1) alg=0 addr=(nil) kealy_idx=0 set_tx=0 seq_len=0 key_len=0
3
wpa_driver_nl80211_set_key: ifindex=7 (wlan1) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=7 (wlan1) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=7 (wlan1) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan1 with hwaddr 72:4a:0e:d3:58:20 and ssid "soft-ap"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=7):
73 6f 66 74 2d 61 70 soft-ap
PSK (ASCII passphrase) - hexdump_ascii(len=12): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/random
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=58): 80 00 00 00 ff ff ff ff ff ff 72 4a 0e d3 58 20 72 4a 0e d3 58 20 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 07 73 6f 66 74 2d 61 70 01 08 82 84 8b 96 0c 12 18 24 03 01 06
nl80211: Beacon tail - hexdump(len=55): 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
nl80211: ifindex=7
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=7):
73 6f 66 74 2d 61 70 soft-ap
* beacon_int=100
* dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x3
nl80211: wpa_version=0x3
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x18
nl80211: group_cipher=0x8
[ 272.953723] [dhd-wlan1] wl_cfg80211_set_channel : netdev_ifidx(7), chan_type(1) target channel(6)
[ 272.968344] [dhd-wlan1] wl_cfg80211_bcn_bringup_ap : Creating AP/GO with sec=wpapsk/66
[ 272.971710] [dhd] CFG80211-ERROR) wl_bss_iovar_war : wl bss 3
[ 273.043163] [dhd-wlan1] wl_notify_connect_status_ap : AP/GO Link up
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=7 (wlan1) alg=2 addr=0x70507 key_idx=1 set_tx=1 seq_len=0 key_len=32
nl80211: KEY_DATA - hexdump(len=32): [REMOVED]
broadcast key
nl80211: Set wlan1 operstate 0->1 (UP)
netlink: Operstate: ifindex=7 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
Failed to set TX queue parameters for queue 0.
Failed to set TX queue parameters for queue 1.
Failed to set TX queue parameters for queue 2.
Failed to set TX queue parameters for queue 3.
wlan1: interface state UNINITIALIZED->ENABLED
wlan1: AP-ENABLED
wlan1: Setup of interface done.
ctrl_iface not configured!
RTM_NEWLINK: ifi_index=7 ifname=wlan1 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: RTM_NEWLINK: ifi_index=7 ifname=wlan1 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
VLAN: vlan_newlink(wlan1) |
|