Commit Graph

27 Commits

Author SHA1 Message Date
dyoung c342db9666 Use printf("%zx", arg) instead of printf("%lx", (unsigned long)arg).
Use __arraycount().
2007-07-16 15:55:38 +00:00
drochner 8258b792b7 Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
 stage, but did configuration again. I've converted them to match
 in the device stage.
ustir, utoppy: matched in the interface stage, but only against
 vendor/device information, and used any configuration/interface
 without checking. Changed to match in device stage, and added
 some simple code to configure and use the first interface.
If you have one of those devices, please test!
2007-03-13 13:51:53 +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
wiz 3ed1aa9185 Spell "separate" correctly. From Zafer Aydogan. 2006-12-25 18:39:47 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
joerg 8934eeb830 Split the USB task queue into two parts, one for normal device tasks and
one for tasks of the host controllers. This is needed for drivers like
ural(4) that want to do synchronous USB transfers from the task handler.
Before the split timeouts could not be handled correctly as the task
thread was still blocked. From FreeBSD.
2006-10-31 20:43:31 +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 82e1169df4 fix empty if 2006-10-04 15:49:59 +00:00
jnemeth 51cc6c4041 PR/34654 -- Peter Szilagyi -- add support for Belkin F5D6050 802.11b dongle 2006-10-01 02:06:34 +00:00
christos 33bd80c320 From: Jaime A Fournier: Patch to support SMC 2262WV1 2006-09-22 12:43:52 +00:00
rpaulo 46ecc3073d First round at adapting to our net80211 stack. Unfinished work, but at least
won't make the machine panic.
2006-05-22 21:01:15 +00:00
christos c0fdc5190f XXX: GCC uninitialized 2006-05-14 05:42:43 +00:00
rpaulo a2a222b5c1 Don't use a private variable for storing the desired ssid, the net80211 layer
provides that.
From OpenBSD.
2006-05-08 17:12:42 +00:00
thorpej 39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
augustss 911fb919e4 Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
an interrupt context.  From kern/32172 by darkstar@city-net.com.
2005-11-28 13:31:09 +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
augustss 834327c847 Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.
2005-05-11 10:02:28 +00:00
itojun a02091146b atu on OQO model 01 is confirmed to be working under basestation/no-WEP.
(WEP is not supported yet, it is an different issue)
2005-03-03 09:23:24 +00:00
itojun 8a4d93018c OQO wifi interface needs quirks
(not confirmed if it works or not, so commented out)
2005-03-03 08:10:35 +00:00
itojun 99b78187d5 OQO device still unstable on attach/whatever, so comment those entries out 2005-03-02 11:35:07 +00:00
itojun 3ea088e9f4 add OQO model 01 devices 2005-03-01 03:18:52 +00:00
joff a446f7ac7a Misc changes from code review from someone who doesn't understand USB or
802.11 but wants this driver to work nonetheless...
 o Support WEP encryption, hopefully fix PR kern/29324 from Andreas Gustafsson
 o Correct ENETRESET reconfig while iface is already running
 o Correct bpfilter usage
 o Avoid leaking mbufs on failed TX
 o Reset ieee80211 state to INIT and stop atu_task() on atu_stop()
 o Don't stop interface on USB tx errs, just drop packet
 o use IFQ_IS_EMPTY rather than check if_snd for NULL head
2005-02-27 23:49:05 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
joff d42fc76092 Clear IFF_RUNNING flag before aborting usb pipes in atu_stop().
Really fixes kern/29326.
2005-02-25 14:47:19 +00:00
joff ba4b28e8e5 o Make sure interface is up before continuing with atu_start(). Should fix PR
kern/29326 as reported by Andreas Gustafsson.
o Use IFQ_DEQUEUE instead of IF_DEQUEUE
2005-02-24 06:06:11 +00:00
joff 79f8908d72 It seems on some archs size_t is unsigned int and on others size_t is
unsigned long.  Cast sizeof() to unsigned long in printf()'s so it can
always work regardless.
2005-01-24 22:40:00 +00:00
joff c8bf53857e Atmel AT76C50XX usb 802.11b wifi dongle driver from OpenBSD. 2005-01-24 01:17:03 +00:00