On Sat, Feb 24, 2018 at 03:21:14PM -0500, trondd wrote: > Went back to HEAD and reporduced the problem immediatly. Applied the patch > and > that seems to fix it. Running the patch without IWM_DEBUG for now to verify > stability.
> Feb 24 14:42:07 portabsd /bsd: iwm0: 0000001C | hcmd This "host command" code is the command used to transmit a frame: #define IWM_TX_CMD 0x1c So it seems the firmware is crashing during an attempt to send a frame while a background scan is in progress. It's unclear why this is happening. It could be a firmware bug, or it could be misuse of the firmware's API by the driver. Your observation that my diff fixes it means that setting the SSID of a an AP in the background scan command is somehow related to this crash. One possibility is that a firmware upgrade could fix this. But in any case, setting the SSID during a background scan is not necessary. So if my diff works, we can just commit it and stop worrying about the firwmare's problems.
