Commit Graph

38 Commits

Author SHA1 Message Date
dyoung e33cbf5cfc pci_disable_retry() is now a no-op, so don't call it any more. 2008-03-11 20:39:24 +00:00
dyoung f580a3a869 Use PMF_FN_ARGS, PMF_FN_PROTO. 2008-02-29 06:13:39 +00:00
dyoung 6f3852fab4 Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
2007-12-20 21:08:17 +00:00
jmcneill 4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
dyoung dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
christos 95d484d975 Coverity CID 4151: Don't forget to close the firmware file (from Arnaud Lacombe) 2006-09-29 14:38:04 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
rpaulo d9e2b32d75 Don't read the firmware twice. Noticed by Nick. 2006-08-02 13:58:39 +00:00
blymn 8582430c8c Clean up bogus whitespace 2006-05-28 13:01:46 +00:00
rpaulo 77ff29031a aprint_debug -> aprint_error. 2006-05-01 20:43:46 +00:00
rpaulo a1c7943ca0 Describe the capabilities supported. 2006-04-29 16:46:11 +00:00
rpaulo 3dd0f930ba There's no power management support under ipw, so don't announce it to
the net80211 stack.
2006-04-29 16:43:40 +00:00
rpaulo 35acb56df5 bzero -> memset
bcopy -> memcpy
2006-04-28 14:17:13 +00:00
rpaulo e0a9e3e48a Print the Ethernet address on attachement. 2006-04-28 13:59:59 +00:00
rpaulo 2f81fede5b Use strlcpy instead of strncpy and sizeof. Requested by Luke. 2006-04-18 12:49:02 +00:00
rpaulo 6f2308417e Remove SIOCKILLFW. 2006-04-17 20:57:24 +00:00
rpaulo 3f57889bb2 Oops, 16 is not enough to store the firmware filenames, use 24. 2006-04-17 19:06:51 +00:00
rpaulo f32518359d Use the firmload API to retrive the firmware from the filesystem. 2006-04-17 17:29:08 +00:00
perry 93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
skrll 74331c1241 Merge the FreeBSD code and adapt to NetBSD:
- add power management.
	- update ioctl handling.

Fix PR 27439 as the FreeBSD code has joerg's fix for when the RX intr
routine can't allocate a new mbuf.

Fix PR 30806. Thanks to cube@ for testing and some struct ipw_soft_hdr
handling code.

XXX The state machine doesn't sync with the net80211 layer, but that's
XXX not a surprise.
2005-12-20 07:51:38 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
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