FC64EAAMD 驱动加载失败:cnss 固件超时及 SRAM 转储权限错误分析

我用的是FC64EAAMD,驱动加载后log如下:搜索 “cnss” (1个文件中匹配到18次,总计查找1次) [Normal]
新文件 2 (匹配18次)
行 6: [14298.202604] cnss: FW sram dump start /var/crash/2017-08-05-20-58-28-q6-sram.bin …
行 7: [14298.202653] cnss: FW sram dump create file /var/crash/2017-08-05-20-58-28-q6-sram.bin failed
行 8: [14298.202661] cnss: FW sram dump end, status -13
行 12: [14298.202702] cnss: Timeout waiting for FW ready indication
行 13: [14298.202712] cnss: Posting event: RECOVERY(9), state: 0x2190
行 14: [14298.202719] cnss: PM stay awake, state: 0x2190, count: 1
行 15: [14298.202725] cnss_pm_stay_awake: NAP-TODO
行 16: [14298.202741] cnss: PM relax, state: 0x2190, count: 0
行 17: [14298.202747] cnss_pm_relax: NAP-TODO
行 18: [14298.202752] cnss: cnss_driver_event_work
行 19: [14298.202756] cnss: PM stay awake, state: 0x2190, count: 1
行 20: [14298.202758] cnss_pm_stay_awake: NAP-TODO
行 21: [14298.202762] cnss: Processing driver event: RECOVERY(9), state: 0x2190
行 22: [14298.202765] cnss: Driver recovery is triggered with reason: TIMEOUT(3)
行 23: [14298.202768] cnss: Recovery is already in progress!
行 24: [14298.202773] cnss: PM relax, state: 0x2190, count: 0
行 25: [14298.202781] cnss_pm_relax: NAP-TODO,是哪里出了问题。

这个log 看就是模块进dump 了。

问题是否必现?

主控是什么系统,内核版本多少呢?

目前已解决。想请教一下FC64E支持sta+ap共存吗?

模块支持DBS,支持AP+STA 同时使用。

那支持2.4G和5G双AP吗?

这个模块支持2.4G + 5G AP 同时使用。

这个模块甚至支持同时开启3个AP.

双AP

修改udhcpd.conf的dhcp 功能的接口为 bridge0

insmod /etc/wifi//wlan_cnss_core_pcie.ko

insmod /etc/wifi/wlan.ko                        

iw dev wlan0 set type __ap    

iw dev wlan0 interface add wlan1 type __ap

iifconfig wlan0 up

ifconfig wlan1 up

iw dev wlan1 set 4addr on

brctl addbr bridge0

ifconfig bridge0 up

ifconfig bridge0 192.168.11.1

ip link set bridge0 promisc on

brctl addif bridge0 wlan0

brctl addif bridge0 wlan1

hostapd -B /etc/wifi/hostapd.conf -P /var/run/data/hostapd_ssid1.pid -e /var/run/entropy_file1 -dd -t -K -f /var/run/hostapd1.log

hostapd -B /etc/wifi/hostapd_wlan1.conf -P /var/run/data/hostapd_ssid2.pid -e /var/run/entropy_file2 -dd -t -K -f /var/run/hostapd2.log

udhcpd -Sf /etc/wifi/udhcpd.conf &