Commit Graph

13 Commits

Author SHA1 Message Date
dyoung 707b2b4ae1 Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error.  I had thought it was a bug.  It was not.
It's the drivers that are broken.  Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL.  Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.
2005-07-06 23:44:15 +00:00
dyoung 9063402978 Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
christos bb4c90071c - const poisoning
- avoid variable shadowing.
2005-05-30 04:35:22 +00:00
dyoung a10b4b5f6b Keep a count of free transmit/command descriptors, sc->txfree.
Make the transmit section reserve one descriptor for issuing a
command at all times.  If either transmit descriptors run out, or
header/buffer software descriptors run out, set IFF_OACTIVE and
get out of ipw_start, rather than re-using a descriptor or trying
to use a NULL descriptor that comes off the front of an empty
descriptor tailqueue.

This ought to fix port-i386/27439 and kern/28683.
2005-01-19 06:00:22 +00:00
dyoung fc524c150b Use IFQ_DEQUEUE instead of IF_DEQUEUE on if->if_snd to be consistent
with IFQ_SET_READY(&if->if_snd) elsewhere, and also to enable
ALTQ(9) on ipw(4).
2005-01-18 04:31:09 +00:00
lukem ade2bb0154 Whitespace tweaks.
Remove vendor RCSID, since it's out of sync already (due to manual patches).
2004-09-14 00:38:37 +00:00
lukem 90a0bf7bae Use ieee80211_find_rxnode() function instead of ieee80211_find_node()
and ieee80211_ref_node().  From Damien Bergamini.
2004-09-14 00:35:10 +00:00
lukem 25429a05fb Correctly synchronize DMA mapping for transmission buffer descriptors.
From Damien Bergamini.
2004-09-14 00:34:19 +00:00
lukem 8c838d97d0 Improve monitor mode support. From Damien Bergamini 2004-09-14 00:32:55 +00:00
lukem 9e6574e2c2 Add IEEE802.11 radiotap support. From Damien Bergamini. 2004-09-14 00:31:20 +00:00
lukem ce0391e266 Minor cosmetic consistency tweaks, from Damien. 2004-08-27 00:02:02 +00:00
lukem 6d906be913 NetBSD RCSID 2004-08-23 11:57:35 +00:00
lukem a91684ce5d ipw(4) - Intel PRO/Wireless 2100 driver.
Written by Damien Bergamini, from http://damien.bergamini.free.fr/ipw/
2004-08-23 11:42:02 +00:00