History log of /openbsd/sys/dev/usb/if_run.c (Results 1 – 25 of 140)
Revision Date Author Comments
# 81508fe3 23-May-2024 jsg <jsg@openbsd.org>

remove unneeded includes; ok mpi@


# 36dba039 14-Apr-2024 jsg <jsg@openbsd.org>

with empty body loops, put final semicolon on a new line for readability
ok bluhm@ jca@


# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# 3d28c107 10-May-2022 stsp <stsp@openbsd.org>

Make run(4) attach to RT5372 devices.
Patch by molotov31337 on tech@


# 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 ...


# 8985a220 22-Nov-2021 mglocker <mglocker@openbsd.org>

Align memory allocation for USB device drivers and USB HC drivers:

* USB device drivers use M_USBDEV instead of M_DEVBUF.
* USB HC drivers use M_USBHC instead of M_DEVBUF.

In a vanilla setup, this

Align memory allocation for USB device drivers and USB HC drivers:

* USB device drivers use M_USBDEV instead of M_DEVBUF.
* USB HC drivers use M_USBHC instead of M_DEVBUF.

In a vanilla setup, this enlarges the USB memory pool.

ok anton@

show more ...


# 0ff00077 01-Nov-2021 krw <krw@openbsd.org>

Restore some NULL checks lost in r1.132, add a couple more to deal with WEP key
installation happening w/o a node, and don't attempt to set WEP keys that don't
exist.

Should fix the '(null node)' pa

Restore some NULL checks lost in r1.132, add a couple more to deal with WEP key
installation happening w/o a node, and don't attempt to set WEP keys that don't
exist.

Should fix the '(null node)' panics reported by James Hastings.

ok stsp@

show more ...


# ac5ee598 31-Oct-2021 stsp <stsp@openbsd.org>

Raise SPL to IPL_NET in run_next_scan() to avoid splassert failures.

Problem found and fix tested by krw@.
ok krw@


# cf67a9a2 27-Nov-2020 krw <krw@openbsd.org>

As in urtwn(4), don't bring link up (getting dhclient(8) excited) until
all the keys are negotiated and installed.

ok stsp@


# 51a6fb14 11-Oct-2020 mpi <mpi@openbsd.org>

Stop exporting `wt_hwqueue' now that drivers don't advertise it.

Pointed by and ok jsg@


# 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@


# 07543ce9 05-Jan-2020 jsg <jsg@openbsd.org>

remove duplicate device ids


# 8fbaf8a2 12-Sep-2019 stsp <stsp@openbsd.org>

Make wireless drivers call if_input() only once per interrupt.

This reduces drops caused by the ifq pressure drop mechanism and hence
increases throughput. Such drops are visible with e.g. 'netstat

Make wireless drivers call if_input() only once per interrupt.

This reduces drops caused by the ifq pressure drop mechanism and hence
increases throughput. Such drops are visible with e.g. 'netstat -dnI iwm0'.

Not all affected drivers have been tested yet but these changes are largely
mechanical and should be safe. As usual, please report any regressions.

With help from dlg@ and mpi@

Problem found by robert@
Tested by robert, jmc, Tracey Emer, Matthias Schmidt, florian, Björn Ketelaars
ok mpi@

show more ...


# 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@


# f9a9fbed 30-Jan-2018 zhuk <zhuk@openbsd.org>

Add D-Link DWA-125 rev B2 to list of devices supported by run(4).
Works for me on amd64.

okay stsp@, who also noted this matches Linux commit
fd7b9270120ca7e53fbf0469febe0c68acf6a0a2


# c37a468c 26-Oct-2017 mpi <mpi@openbsd.org>

Move common code to add/remove multicast filters to ieee80211_ioctl(9).

ok jsg@, stsp@


# 4057595d 14-Aug-2017 stsp <stsp@openbsd.org>

Attach run(4) to D-Link DWA-137 and DWA-140 rev D1.
Patch by Mike Korbakov


# cc2c4b1a 02-Aug-2017 stsp <stsp@openbsd.org>

Match D-Link DWA-130 rev F1 devices. These work with run(4).
Patch by Jacqueline Jolicoeur
ok deraadt


# 79d0d5f8 21-Jul-2017 kevlo <kevlo@openbsd.org>

Drop Rx'd frames larger than MCLBYTES.
Problem reported by Ilja Van Sprundel.

ok stsp@, tb@


# 8443256d 03-Jul-2017 kevlo <kevlo@openbsd.org>

Replace slot time durations with macros.

ok stsp@


# a98f2ad0 02-Jun-2017 kevlo <kevlo@openbsd.org>

Remove a bogus run_read() call about getting MAC version.
ok stsp@


# c9ee9455 26-Mar-2017 deraadt <deraadt@openbsd.org>

Add sizes to various free(9) calls. Fixing the simpler ones first.
ok natano visa


# 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 ...


# 2fea45f3 13-Apr-2016 mpi <mpi@openbsd.org>

G/C IFQ_SET_READY().


123456