Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

RV1126 WIFI的AP模式怎么打开

34

积分

0

威望

0

贡献

技术小白

积分
34

RV1126 WIFI的AP模式怎么打开

发表于 2022-2-26 15:20:08      浏览:6039 | 回复:14        打印      只看该作者   [复制链接] 楼主
CORE 1126 JD4 WIFI默认是工作在STA模式下, 现在需要切换到AP模式下,有没有相关的说明文档?
回复

使用道具 举报

34

积分

0

威望

0

贡献

技术小白

积分
34
发表于 2022-2-27 21:49:09        只看该作者  沙发
启动softap时有FAILED TO SET TX queue和ctrl_iface not configured!的错误日志,启动后,可以发现热点,但是连接不上,请问这是哪方面的问题?请斑竹给看下,
1501844767.645955: nl80211: Set wlan1 operstate 0->1 (UP)
1501844767.646052: netlink: Operstate: ifindex=12 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
1501844767.647263: Failed to set TX queue parameters for queue 0.
1501844767.647510: Failed to set TX queue parameters for queue 1.
1501844767.647950: Failed to set TX queue parameters for queue 2.
1501844767.648374: Failed to set TX queue parameters for queue 3.
1501844767.648818: wlan1: interface state UNINITIALIZED->ENABLED
1501844767.649338: wlan1: AP-ENABLED
1501844767.649609: wlan1: Setup of interface done.
1501844767.650005: ctrl_iface not configured!
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-2-28 10:44:31        只看该作者  板凳
附上你的操作流程和操作命令以及相关输出的log,这样才能给你分析解答。
回复

使用道具 举报

34

积分

0

威望

0

贡献

技术小白

积分
34
发表于 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)
回复

使用道具 举报

34

积分

0

威望

0

贡献

技术小白

积分
34
发表于 2022-2-28 11:47:22        只看该作者  5#
操作流程是,
1. killall wpa_supplicant dnsmasq hostapd
2. 执行 ./softapDemo soft-ap&
笔记本电脑可以搜到 soft-ap的热点 但是连接不上。

回复

使用道具 举报

34

积分

0

威望

0

贡献

技术小白

积分
34
发表于 2022-2-28 11:57:26        只看该作者  6#
笔记本电脑无法连接热点的图片。

无法连接到网络.jpg (176.72 KB, 下载次数: 60)

无法连接到网络.jpg
回复

使用道具 举报

34

积分

0

威望

0

贡献

技术小白

积分
34
发表于 2022-2-28 13:39:00        只看该作者  7#
softapdemo生成的hostapd.conf
[root@RV1126_RV1109:/userdata/bin]# cat hostapd.conf
interface=wlan1
ctrl_interface=/var/run/hostapd
driver=nl80211
ssid=soft-ap
channel=6
hw_mode=g
ieee80211n=0
auth_algs=3
wpa=3
wpa_passphrase=123123456789
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

生成的dnsmaq.conf:
[root@RV1126_RV1109:/userdata/bin]# cat dnsmasq.conf
user=root
listen-address=192.168.88.1
dhcp-range=192.168.88.50,192.168.88.150
server=/google/8.8.8.8

给分析一下吧,看还需要提供什么信息。
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-2-28 18:02:54        只看该作者  8#
warmblood 发表于 2022-2-28 13:39
softapdemo生成的hostapd.conf
[root@RV1126_RV1109:/userdata/bin]# cat hostapd.conf
interface=wlan1 ...

试一下:
  1. # 基于你的操作关闭 wpa 相关
  2. /oem/RkLunch-stop.sh
  3. rfkill unblock all
  4. #再执行 softapDemo
复制代码
回复

使用道具 举报

34

积分

0

威望

0

贡献

技术小白

积分
34
发表于 2022-3-1 09:29:16        只看该作者  9#
这样试过了  还是不行  现象还是一样的  笔记本能检测到热点 还是连接不上  手机还是检测不到热点,
[root@RV1126_RV1109:/usr/bin]# /oem/RkLunch-stop.sh
/oem/RkLunch-stop.sh
killall: ipc-daemon: no process killed
killall: mediaserver: no process killed
killall: storage_manager: no process killed
killall: netserver: no process killed
killall: dbserver: no process killed
killall: startup_app_ipc: no process killed
Stop Application ...
mediaserver exit

[root@RV1126_RV1109:/usr/bin]# rfkill unblock all
rfkill unblock all
[root@RV1126_RV1109:/usr/bin]# ./softapDemo 31test&


以下几行日志是不是能看到问题,有 FAILED 和 not configured!, 不知道又没有关系,
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!

回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11377

突出贡献

发表于 2022-3-2 09:12:32        只看该作者  10#
warmblood 发表于 2022-3-1 09:29
这样试过了  还是不行  现象还是一样的  笔记本能检测到热点 还是连接不上  手机还是检测不到热点,
[root ...

使用 softapDemo 开启热点后,板子会生成 wlan1 节点。此时能看到 wlan1 节点的 IP 地址。如下:

  1. wlan1     Link encap:Ethernet  HWaddr 12:2C:6B:7E:18:90  
  2.           inet addr:192.168.88.1  Bcast:192.168.88.255  Mask:255.255.255.0
  3.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  4.           RX packets:50 errors:0 dropped:26 overruns:0 frame:0
  5.           TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
  6.           collisions:0 txqueuelen:1000
  7.           RX bytes:7176 (7.0 KiB)  TX bytes:2153 (2.1 KiB)
复制代码
手机要连上这个WiFi的话需要手动设置连接该WiFi的IP地址。比如板子的IP地址是:192.168.88.1。手机则设置WiFi的IP地址是192.168.88.xxx。必须同一个网段,不然连不上。



回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表