#
81508fe3 |
| 23-May-2024 |
jsg <jsg@openbsd.org> |
remove unneeded includes; ok mpi@
|
#
52a13037 |
| 21-Apr-2022 |
stsp <stsp@openbsd.org> |
Use memset() to initialize struct ieee80211_rxinfo properly.
Sven Wolf noticed that scans on ral(4) are buggy ever since I added a new field to this struct. Turns out a lot of drivers were initializ
Use memset() to initialize struct ieee80211_rxinfo properly.
Sven Wolf noticed that scans on ral(4) are buggy ever since I added a new field to this struct. Turns out a lot of drivers were initializing fields one-by-one, leaving any newly added fields uninitialized by default.
Affected drivers may report wrong channel numbers for received beacons. The net80211 stack will discard such beacons, assuming they were received on the wrong channel due to signal leakage. Scanning is broken as result.
ok miod@
show more ...
|
#
f88cb03e |
| 31-Jul-2020 |
mglocker <mglocker@openbsd.org> |
Nuke all occurrences of usbd_abort_pipe() if it gets called right before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes.
As investigated by gerhard@ usb
Nuke all occurrences of usbd_abort_pipe() if it gets called right before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes.
As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards.
ok gerhard@
show more ...
|
#
63bcfa73 |
| 10-Jul-2020 |
patrick <patrick@openbsd.org> |
Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the "new" API.
ok dlg@ tobhe@
|
#
2e342c84 |
| 25-Apr-2019 |
kevlo <kevlo@openbsd.org> |
Follow up on jmatthew's suggestion: in x_media_change(), return the errno from ieee80211_media_change() and do the error check from x_init().
ok stsp@, jmatthew@, phessler@
|
#
8797f6cf |
| 13-Jan-2019 |
mpi <mpi@openbsd.org> |
Validate that the interface passed to *match() is the expected one instead of calling usbd_device2interface_handle() during *attach().
ok stsp@
|
#
c37a468c |
| 26-Oct-2017 |
mpi <mpi@openbsd.org> |
Move common code to add/remove multicast filters to ieee80211_ioctl(9).
ok jsg@, stsp@
|
#
8443256d |
| 03-Jul-2017 |
kevlo <kevlo@openbsd.org> |
Replace slot time durations with macros.
ok stsp@
|
#
88a08f2a |
| 22-Jan-2017 |
dlg <dlg@openbsd.org> |
move counting if_opackets next to counting if_obytes in if_enqueue.
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it.
move counting if_opackets next to counting if_obytes in if_enqueue.
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it.
ok mpi@ deraadt@
show more ...
|
#
f4b7d08e |
| 06-Nov-2016 |
mpi <mpi@openbsd.org> |
Avoid calling usbd_set_config_no() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before pr
Avoid calling usbd_set_config_no() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
This is similar to the change to avoid calling usbd_set_config_index().
show more ...
|
#
135cbf69 |
| 20-Jul-2016 |
stsp <stsp@openbsd.org> |
Unbreak ural(4), which had been dropping frames on Tx while the IFF_RUNNING flag was set since last November (r1.138). Apparently nobody is using this driver, except for martijn@. Fix tested by marti
Unbreak ural(4), which had been dropping frames on Tx while the IFF_RUNNING flag was set since last November (r1.138). Apparently nobody is using this driver, except for martijn@. Fix tested by martijn@ and myself. ok dlg@
show more ...
|
#
2fea45f3 |
| 13-Apr-2016 |
mpi <mpi@openbsd.org> |
G/C IFQ_SET_READY().
|
#
de6cd8fb |
| 25-Nov-2015 |
dlg <dlg@openbsd.org> |
replace IFF_OACTIVE manipulation with mpsafe operations.
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue i
replace IFF_OACTIVE manipulation with mpsafe operations.
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too.
IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change.
instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd.
this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too.
ok kettenis@ mpi@ jmatthew@ deraadt@
show more ...
|
#
cc500f3f |
| 24-Nov-2015 |
mpi <mpi@openbsd.org> |
No need to include <net/if_arp.h>
This header is only needed because <netinet/if_ether.h> declares a structure that needs it. But it turns out that <net/if.h> already includes it as workaround.
A
No need to include <net/if_arp.h>
This header is only needed because <netinet/if_ether.h> declares a structure that needs it. But it turns out that <net/if.h> already includes it as workaround.
A proper solution would be to stop declarting "struct ether_arp" there. But no driver should need this header.
show more ...
|
#
f9ad5574 |
| 24-Nov-2015 |
mpi <mpi@openbsd.org> |
The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.
|
#
32a12f8b |
| 13-Nov-2015 |
mpi <mpi@openbsd.org> |
Check for space on the ring before dequeuing packets.
Allows us to get rid of mq_requeue(9) and IFQ_POLL(9) because wireless drivers use a special queue for management frames.
Tested by stsp@, ok d
Check for space on the ring before dequeuing packets.
Allows us to get rid of mq_requeue(9) and IFQ_POLL(9) because wireless drivers use a special queue for management frames.
Tested by stsp@, ok dlg@, stsp@
show more ...
|
#
351e1934 |
| 04-Nov-2015 |
dlg <dlg@openbsd.org> |
replace the ifqueues in net80211 with mbuf_queues.
the specific queues are ic_mgtq, ic_pwrsaveq, and ni_savedq. rtw had its own queue for beacons.
tested by mpi@ and jmc@ ok mpi@
|
#
81fda355 |
| 25-Oct-2015 |
mpi <mpi@openbsd.org> |
arp_ifinit() is no longer needed.
|
#
21dab745 |
| 14-Mar-2015 |
jsg <jsg@openbsd.org> |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
#
64fa60b7 |
| 10-Feb-2015 |
mpi <mpi@openbsd.org> |
Wireless drivers call if_input() via ieee80211_input() which set `rcvif' on every received mbuf, so there's no need to initialize this pointer in the drivers.
Tested by and ok phessler@
|
#
f79ee556 |
| 22-Dec-2014 |
tedu <tedu@openbsd.org> |
unifdef INET
|
#
9b18ffb8 |
| 19-Dec-2014 |
guenther <guenther@openbsd.org> |
Use <sys/endian.h> instead of <machine/endian.h>
ok dlg@ mpi@ bcook@ millert@ miod@
|
#
eabacab1 |
| 13-Jul-2014 |
mpi <mpi@openbsd.org> |
No need for <netinet/in_systm.h> here.
|
#
53c6612d |
| 12-Jul-2014 |
mpi <mpi@openbsd.org> |
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag.
Even if the purpose of
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag.
Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states.
This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying().
Discussed many times with deraadt@
show more ...
|
#
6da4b19d |
| 19-Mar-2014 |
mpi <mpi@openbsd.org> |
Stop abusing the rcvif pointer to pass wireless nodes down to the driver start routines. Instead add & use a pointer in the pkthdr since we don't want the overhead of using a mbuf_tags(9).
claudio@
Stop abusing the rcvif pointer to pass wireless nodes down to the driver start routines. Instead add & use a pointer in the pkthdr since we don't want the overhead of using a mbuf_tags(9).
claudio@ pointed out that other subsystems might want to use this pointer too, so here's a new cookie!
ok claudio@, mikeb@, deraadt@
show more ...
|