On 24 May 2016 at 21:49, Arend Van Spriel <arend.vanspriel@xxxxxxxxxxxx> wrote: > Looking into the firmware code it turns out that the DOWN command brings > down the entire stack iso single interface. This seems specific for some > firmware branches so we have to find a better solution. Hante and I are > looking into it. I started working on brcmfmac few days ago and I realized that as well. When having 4 AP interfaces and stopping hostapd nicely I get: brcmfmac: [brcmf_fweh_handle_if_event] ifevent->action:3:BRCMF_E_IF_CHANGE brcmfmac: action: 3 ifidx: 0 bsscfgidx: 0 flags: 0 role: 8 brcmfmac: [brcmf_fweh_handle_if_event] ifevent->action:2:BRCMF_E_IF_DEL brcmfmac: action: 2 ifidx: 1 bsscfgidx: 2 flags: 0 role: 1 brcmfmac: brcmf_fweh_call_event_handler: no interface object brcmfmac: [brcmf_fweh_handle_if_event] ifevent->action:2:BRCMF_E_IF_DEL brcmfmac: action: 2 ifidx: 2 bsscfgidx: 3 flags: 0 role: 1 brcmfmac: brcmf_fweh_call_event_handler: no interface object brcmfmac: [brcmf_fweh_handle_if_event] ifevent->action:2:BRCMF_E_IF_DEL brcmfmac: action: 2 ifidx: 3 bsscfgidx: 4 flags: 0 role: 1 brcmfmac: brcmf_fweh_call_event_handler: no interface object brcmfmac: [brcmf_fweh_handle_if_event] ifevent->action:1:BRCMF_E_IF_ADD brcmfmac: action: 1 ifidx: 0 bsscfgidx: 0 flags: 0 role: 8 brcmfmac: adding wl0 (80:23:6a:a3:7d:95) brcmfmac: [brcmf_fweh_handle_if_event] ifevent->action:3:BRCMF_E_IF_CHANGE brcmfmac: action: 3 ifidx: 0 bsscfgidx: 0 flags: 0 role: 0 It means that all interfaces/BSS-es were dropped by firmware internally and thanks to that we can create them again (start AP again). It doesn't happen if: 1) I simply add & remove interfaces manually with "iw" 2) I use BCM4366 and hostapd In both above cases firmware keeps its internal interfaces/BSS-es and I can't recreate interfaces. -- Rafał -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html