On Wed, 28 Nov 2018 at 20:14, Stefan Wahren <[email protected]> wrote:
>
> Hi,
>
> > Stefan Wahren <[email protected]> hat am 26. November 2018 um 19:14
> > geschrieben:
> >
> >
> > Hi Arend,
> >
> > > Arend van Spriel <[email protected]> hat am 26. November 2018
> > > um 11:11 geschrieben:
> > >
> > > So no AP listed here. I suspect Rafał was focusing on "device_ap_sme=1
> > > use_monitor=1" scenario. You can try adding AP entry with similar rx
> > > bits as P2P_GO above.
> >
> > thanks this make all driver errors like "setting AP mode failed -52"
> > disappear, but now hostapd 2.6 seems to stuck in a loop during establishing
> > the link:
> >
>
> i increased the debug level of brcmfmac to 0x5 and i'm getting this while
> booting:
>
> [ 5.288806] brcmfmac: F1 signature read @0x18000000=0x15264345
> [ 5.289167] brcmfmac: brcmf_chip_recognition found AXI chip: BCM4345/6
> [ 5.293319] brcmfmac: brcmf_chip_cores_check [1 ] core 0x800:51 base
> 0x18000000 wrap 0x18100000
> [ 5.293333] brcmfmac: brcmf_chip_cores_check [2 ] core 0x812:54 base
> 0x18001000 wrap 0x18101000
> [ 5.293344] brcmfmac: brcmf_chip_cores_check [3 ] core 0x83e:9 base
> 0x18002000 wrap 0x18102000
> [ 5.293353] brcmfmac: brcmf_chip_cores_check [4 ] core 0x83c:14 base
> 0x18003000 wrap 0x18103000
> [ 5.293362] brcmfmac: brcmf_chip_cores_check [5 ] core 0x829:21 base
> 0x18004000 wrap 0x18104000
> [ 5.293371] brcmfmac: brcmf_chip_cores_check [6 ] core 0x135:0 base
> 0x00000000 wrap 0x18107000
> [ 5.293379] brcmfmac: brcmf_chip_cores_check [7 ] core 0x240:0 base
> 0x00000000 wrap 0x00000000
> [ 5.295574] brcmfmac: brcmf_chip_get_raminfo RAM: base=0x198000
> size=819200 (0xc8000) sr=0 (0x0)
> [ 5.295686] brcmfmac: brcmf_chip_setup ccrev=51, pmurev=27,
> pmucaps=0x39d05f1b
> [ 5.295698] brcmfmac: brcmf_get_module_param Enter, bus=0, chip=17221,
> rev=6
> [ 5.295765] brcmfmac: brcmf_sdio_drivestrengthinit No SDIO driver strength
> init needed for chip BCM4345/6 rev 6 pmurev 27
> [ 5.296204] brcmfmac: brcmf_sdio_probe completed!!
> [ 5.296219] brcmfmac: brcmf_fw_alloc_request: using
> brcm/brcmfmac43455-sdio for chip BCM4345/6
> [ 5.413840] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at
> 0x00198000; size=600487
> [ 5.442090] random: crng init done
> [ 5.442105] random: 7 urandom warning(s) missed due to ratelimiting
> [ 5.539438] brcmfmac: brcmf_sdio_verifymemory Compare RAM dl & ul at
> 0x0025f940; size=1728
> [ 5.636378] brcmfmac: brcmf_sdio_firmware_callback enable F2: err=0
> [ 5.636577] brcmfmac: brcmf_bus_change_state ignoring transition, bus not
> attached yet
> [ 5.636819] brcmfmac: brcmf_add_if allocate netdev interface
> [ 5.637199] brcmfmac: brcmf_sdio_readshared sdpcm_shared address 0x001FF350
> [ 5.638014] brcmfmac: brcmf_sdio_readshared sdpcm_shared address 0x001FF350
> [ 5.641788] brcmfmac: brcmf_fw_alloc_request: using
> brcm/brcmfmac43455-sdio for chip BCM4345/6
> [ 5.665557] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb
> 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
> [ 5.666203] brcmfmac: brcmf_c_preinit_dcmds CLM version = API: 12.2 Data:
> 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
> [ 5.673860] brcmfmac: brcmf_feat_firmware_capabilities [ ap sta wme
> 802.11d 802.11h rm cqa cac dualband ampdu ampdu_tx ampdu_rx amsdurx tdls
> radio_pwrsave btamp p2p proptxstatus mchan p2po anqpo vht-prop-rates dfrts
> txpwrcache stbc-tx stbc-rx-1ss epno pfnx wnm bsstrans mfp ]
> [ 5.673890] brcmfmac: brcmf_feat_firmware_capabilities enabling feature:
> MCHAN
> [ 5.673899] brcmfmac: brcmf_feat_firmware_capabilities enabling feature:
> P2P
> [ 5.674522] brcmfmac: brcmf_feat_iovar_int_get enabling feature: PNO
> [ 5.675854] brcmfmac: brcmf_feat_iovar_int_get enabling feature: TDLS
> [ 5.676955] brcmfmac: brcmf_feat_iovar_int_get enabling feature: MFP
> [ 5.678014] brcmfmac: brcmf_feat_iovar_int_get enabling feature: FWSUP
> [ 5.678066] brcmfmac: brcmf_fws_attach FWS queueing will be avoided
> [ 5.678920] brcmfmac: brcmf_cfg80211_attach Registering custom regulatory
> [ 5.681508] brcmfmac: brcmf_setup_wiphybands nmode=1, vhtmode=1,
> bw_cap=(1, 7)
> [ 5.684720] brcmfmac: brcmf_setup_wiphybands nchain=1
> [ 5.721118] brcmfmac: check_vif_up device is not ready : status (0)
> [ 5.721190] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host Driver
> [ 5.844422] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0252
> [ 10.845747] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.612740] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.613251] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.614724] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.616385] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.637118] brcmfmac: brcmf_add_if netdev:wlan0 ignore IF event
> [ 11.638643] brcmfmac: brcmf_config_dongle power save set to enabled
> [ 11.639137] brcmfmac: brcmf_dongle_roam Internal Roaming = On
> [ 11.640504] brcmfmac: brcmf_cfg80211_change_iface IF Type = Infra
> [ 11.642531] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
> [ 11.642545] brcmfmac: brcmf_cfg80211_set_power_mgmt power save enabled
> [ 11.767278] brcmfmac: brcmf_p2p_add_vif adding vif "p2p-dev-wlan0"
> (type=10)
> [ 11.789469] brcmfmac: brcmf_add_if netdev:wlan0 ignore IF event
> [ 11.791667] brcmfmac: brcmf_add_if allocate non-netdev interface
> [ 11.792237] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.792260] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.912572] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.913704] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.913881] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.914027] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.915150] brcmfmac: check_vif_up device is not ready : status (0)
> [ 11.915230] brcmfmac: check_vif_up device is not ready : status (0)
> [ 14.706985] brcmfmac: brcmf_cfg80211_connect ie (29d9d630), ie_len (28)
> [ 17.638253] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
> [ 19.655039] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 21.780277] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 24.744917] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 24.995983] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 25.246750] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 25.446303] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 26.569338] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 28.692076] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
I wonder if the test on line 302 ish in core.c should be <=. The head
delta is 0, which actually means its doesn't need to be increased in
size.
if (skb_headroom(skb) < drvr->hdrlen || skb_header_cloned(skb)) {
<<<< should be <=
head_delta = max_t(int, drvr->hdrlen - skb_headroom(skb), 0);
Don't think this could be the cause of the problem though.
>
> and this after starting hostapd 2.6:
>
> [ 207.921068] brcmfmac: brcmf_btcoex_set_mode DHCP session ends
> [ 207.921352] brcmfmac: brcmf_cfg80211_change_iface IF Type = AP
> [ 209.114209] brcmfmac: brcmf_set_mpc MPC : 0
> [ 209.143594] brcmfmac: brcmf_add_if netdev:wlan0 ignore IF event
> [ 211.049412] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 213.051521] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 218.084704] brcmfmac: brcmf_escan_timeout: timer expired
> [ 218.531282] brcmfmac: brcmf_add_if netdev:wlan0 ignore IF event
> [ 218.531776] brcmfmac: brcmf_vif_set_mgmt_ie: vndr ie set error : -52
> [ 218.532228] brcmfmac: brcmf_set_mpc MPC : 1
> [ 218.533962] brcmfmac: brcmf_cfg80211_change_iface IF Type = Infra
> [ 218.537955] brcmfmac: brcmf_cfg80211_connect ie (537583ca), ie_len (28)
> [ 223.410796] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 225.526035] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 227.705830] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 227.956466] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 228.207019] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 228.407567] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 229.521312] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)
> [ 231.621031] brcmfmac: brcmf_netdev_start_xmit wlan0: insufficient headroom
> (0)