]> xenbits.xensource.com Git - people/julieng/freebsd.git/commit
otus(4) - use the local node alloc function so there's space for statistics.
authoradrian <adrian@FreeBSD.org>
Mon, 19 Oct 2015 01:21:29 +0000 (01:21 +0000)
committeradrian <adrian@FreeBSD.org>
Mon, 19 Oct 2015 01:21:29 +0000 (01:21 +0000)
commit12c5864844c0841a8c86a09401e1c89451777bc5
tree28b8ee1ab11623b1342aae05b3d9b7d5c3f9f26b
parent7177ad0e480aa29b6bea83bb31e31bb533e1f8f3
otus(4) - use the local node alloc function so there's space for statistics.

* Use the correct malloc type for node allocation - M_80211_NODE - so
  the default node free method in net80211 will work correctly.
* Fix otus_node_alloc() to suit FreeBSD's net80211.
* .. and actually call otus_node_alloc() so there's space for the
  per-node tx statistics.  Otherwise, well, it will be scribbling over
  random memory.

Tested:

* AR9170, STA mode
sys/dev/otus/if_otus.c