Open robinquca opened 2 months ago
截图看看配置啥样的
自己摸索了下,一定要在AP有客户端连接时修改工作频率、名称或密码等,那AP可以启动,能正常工作。一旦没有客户端连接AP,空载的AP修改参数后保存,AP就会不再启动,如日志显示那样启动失败。另外密码修改时,如加密用“WPA-PSK”,修改后AP能启动,加密用“WPA2-PSK"或”WPA-PSK/WPA2-PSK Mixed Mode“无论有没有客户端连接AP,都不能启动AP,暂时没有试其他加密方式,目前我是用此方法解决修改AP参数的。
R5C使用6月最新的固件,无线网卡mtk7922,其他都没有问题,无线选项所有默认值可以使用,但修改任意一个参数,保存后,AP功能不能起作用,请大佬查下问题,谢谢
默认参数,AP成功启动,系统日志: Fri Aug 23 12:02:12 2024 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy phy0-ap0) --> new PHY Fri Aug 23 12:02:12 2024 daemon.info ModemManager[25294]: hotplug: add network interface phy0-ap0: event processed Fri Aug 23 12:02:13 2024 daemon.notice hostapd: phy0-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE Fri Aug 23 12:02:13 2024 kern.info kernel: [ 220.180937] br-lan: port 2(phy0-ap0) entered blocking state Fri Aug 23 12:02:13 2024 kern.info kernel: [ 220.181448] br-lan: port 2(phy0-ap0) entered disabled state Fri Aug 23 12:02:13 2024 kern.info kernel: [ 220.182270] device phy0-ap0 entered promiscuous mode Fri Aug 23 12:02:13 2024 kern.info kernel: [ 220.182847] br-lan: port 2(phy0-ap0) entered blocking state Fri Aug 23 12:02:13 2024 kern.info kernel: [ 220.183353] br-lan: port 2(phy0-ap0) entered forwarding state Fri Aug 23 12:02:13 2024 daemon.notice hostapd: phy0-ap0: interface state COUNTRY_UPDATE->HT_SCAN Fri Aug 23 12:02:13 2024 kern.info kernel: [ 220.185299] br-lan: port 2(phy0-ap0) entered disabled state Fri Aug 23 12:02:13 2024 kern.info kernel: [ 221.070750] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready Fri Aug 23 12:02:13 2024 kern.info kernel: [ 221.071713] br-lan: port 2(phy0-ap0) entered blocking state Fri Aug 23 12:02:13 2024 kern.info kernel: [ 221.072264] br-lan: port 2(phy0-ap0) entered forwarding state Fri Aug 23 12:02:13 2024 daemon.notice hostapd: phy0-ap0: interface state HT_SCAN->ENABLED Fri Aug 23 12:02:13 2024 daemon.notice hostapd: phy0-ap0: AP-ENABLED Fri Aug 23 12:02:14 2024 daemon.notice netifd: Network device 'phy0-ap0' link is up Fri Aug 23 12:02:15 2024 daemon.info avahi-daemon[8412]: Joining mDNS multicast group on interface phy0-ap0.IPv6 with address fe80::3203:c8ff:fe37:a53b. Fri Aug 23 12:02:15 2024 daemon.info avahi-daemon[8412]: New relevant interface phy0-ap0.IPv6 for mDNS. Fri Aug 23 12:02:15 2024 daemon.info avahi-daemon[8412]: Registering new address record for fe80::3203:c8ff:fe37:a53b on phy0-ap0.*.
任意修改参数后,AP不会再启动,扫描可以,系统日志: Fri Aug 23 12:17:35 2024 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy phy0-ap0) --> new PHY Fri Aug 23 12:17:35 2024 kern.info kernel: [ 28.184718] br-lan: port 2(phy0-ap0) entered blocking state Fri Aug 23 12:17:35 2024 kern.info kernel: [ 28.185295] br-lan: port 2(phy0-ap0) entered disabled state Fri Aug 23 12:17:36 2024 kern.info kernel: [ 28.186508] device phy0-ap0 entered promiscuous mode Fri Aug 23 12:17:36 2024 kern.info kernel: [ 28.187311] br-lan: port 2(phy0-ap0) entered blocking state Fri Aug 23 12:17:36 2024 kern.info kernel: [ 28.187859] br-lan: port 2(phy0-ap0) entered forwarding state Fri Aug 23 12:17:36 2024 daemon.notice hostapd: phy0-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE Fri Aug 23 12:17:36 2024 kern.info kernel: [ 28.189038] br-lan: port 2(phy0-ap0) entered disabled state Fri Aug 23 12:17:36 2024 daemon.notice hostapd: phy0-ap0: interface state COUNTRY_UPDATE->HT_SCAN Fri Aug 23 12:17:37 2024 daemon.err hostapd: Interface initialization failed Fri Aug 23 12:17:37 2024 daemon.notice hostapd: phy0-ap0: interface state HT_SCAN->DISABLED Fri Aug 23 12:17:37 2024 daemon.notice hostapd: phy0-ap0: AP-DISABLED