summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_iwx.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2020-02-28 14:51:53 +0000
committerstsp <stsp@openbsd.org>2020-02-28 14:51:53 +0000
commitee72a585fa6180eb47aaaf6004ac77314e4ec4cd (patch)
treef76de20470b3d59ad39bcd026c2b955426f0f5b9 /sys/dev/pci/if_iwx.c
parentIn iwx(4) do not drop short control frames in monitor mode and do not (diff)
downloadwireguard-openbsd-ee72a585fa6180eb47aaaf6004ac77314e4ec4cd.tar.xz
wireguard-openbsd-ee72a585fa6180eb47aaaf6004ac77314e4ec4cd.zip
Let iwx(4) ignore RX_NO_DATA_NOTIF firmware messages; seen in monitor mode
Diffstat (limited to 'sys/dev/pci/if_iwx.c')
-rw-r--r--sys/dev/pci/if_iwx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c
index f0095c54f5f..96d8089e985 100644
--- a/sys/dev/pci/if_iwx.c
+++ b/sys/dev/pci/if_iwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwx.c,v 1.5 2020/02/28 14:18:47 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.6 2020/02/28 14:51:53 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -7175,6 +7175,9 @@ iwx_rx_pkt(struct iwx_softc *sc, struct iwx_rx_data *data, struct mbuf_list *ml)
IWX_NVM_ACCESS_COMPLETE):
break;
+ case IWX_WIDE_ID(IWX_DATA_PATH_GROUP, IWX_RX_NO_DATA_NOTIF):
+ break; /* happens in monitor mode; ignore for now */
+
default:
handled = 0;
printf("%s: unhandled firmware response 0x%x/0x%x "