if_iwm: Apply some changes from OpenBSD, if_iwm.c rev 1.39 -> 1.42
authorImre Vadász <imre@vdsz.com>
Wed, 30 Dec 2015 16:01:11 +0000 (17:01 +0100)
committerImre Vadász <imre@vdsz.com>
Thu, 31 Dec 2015 22:57:39 +0000 (23:57 +0100)
commit352c1ce92aec690a8469da6d4702a3647b813e67
tree3264c678dc5fe6a8d5fd3f2e18805620bad14396
parentb223297879ab3f43f563ecee708b5ab9ecf6db18
if_iwm: Apply some changes from OpenBSD, if_iwm.c rev 1.39 -> 1.42

- Use m_defrag(9) instead of rolling our own version of it.

- Limit the number of dma segments used for tx to IWM_MAX_SCATTER - 2.
  This avoids out-of-bound accesses on the segs array in iwm_tx().

- cleanup attach message

Taken-From: OpenBSD
sys/dev/netif/iwm/if_iwm.c