On Sat, Oct 10, 2020 at 11:58:57AM +0200, avv. Nicola Dell'Uomo wrote: > If I can do something to help, please let me know.
Does this change the error reported by firmware in response to the driver's "mac context removal" command? diff 97da2ad2205f020c8bd54c846ec35e7fc8c6fe75 /usr/src blob - 0482cf039bdd9b8060dbf1b2b89348e18db4d233 file + sys/dev/pci/if_iwx.c --- a +++ sys/dev/pci/if_iwx.c @@ -5150,6 +5150,9 @@ in->in_color)); cmd->action = htole32(action); + if (action == IWX_FW_CTXT_ACTION_REMOVE) + return; + if (ic->ic_opmode == IEEE80211_M_MONITOR) cmd->mac_type = htole32(IWX_FW_MAC_TYPE_LISTENER); else if (ic->ic_opmode == IEEE80211_M_STA) @@ -5269,6 +5272,11 @@ iwx_mac_ctxt_cmd_common(sc, in, &cmd, action); + if (action == IWX_FW_CTXT_ACTION_REMOVE) { + return iwx_send_cmd_pdu(sc, IWX_MAC_CONTEXT_CMD, 0, + sizeof(cmd), &cmd); + } + if (ic->ic_opmode == IEEE80211_M_MONITOR) { cmd.filter_flags |= htole32(IWX_MAC_FILTER_IN_PROMISC | IWX_MAC_FILTER_IN_CONTROL_AND_MGMT |