Limit the number of dma segments used for transmitting packets to
authorkettenis <kettenis@openbsd.org>
Fri, 22 May 2015 06:50:54 +0000 (06:50 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 22 May 2015 06:50:54 +0000 (06:50 +0000)
commit617b19c0ad47f30a05ea15c59f9c9c90662093d1
tree7ed14a1ec494c836ed2148ab7f76ebab10e41857
parentce87661d06dac2ab73bbdd13881508b9fff8dcfe
Limit the number of dma segments used for transmitting packets to
IWM_NUM_OF_TBS - 2.  We have IWM_NUM_OF_TBS slots, but use two of those
for sending commands to the firmware.  Hopefully fixes the

  iwm0: hardware error, stopping device

errors I've seen somewhat regularly.

ok claudio@, deraadt@
sys/dev/pci/if_iwm.c