Age | Commit message (Collapse) | Author |
|
in r1.38 of this file, however for some reason the hardware sends RTS frames
at rates other than 1 Mbit/s which of course doesn't help. Not sure what is
causing this problem, but the old behaviour worked better, so revert.
ok krw@
|
|
Hyper-V and Xen have varying support for detaching emulated IDE
devices ranging from none on Hyper-V to only IDE disks but not
CDROM (Xen). The quirk mechanism provides a way of enforcing the
desired behavior.
With suggestions and OK kettenis, tedu, mlarkin
|
|
for firmware to get ready. It fixes "urtwn0: could not load firmware page"
while running stsp@'s script: dhclient urtwn0; ifconfig urtwn0 down;
ifconfig urtwn0 scan in a loop.
- Minor cleanup for rtwn_read_rom()/rtwn_get_txpower(); no need to use
callbacks.
Tested by stsp@ and me.
ok stsp@
|
|
ok stsp@
|
|
From IEEE Std. 802.11-2016, Table 18-5 "ERP characteristics", p. 2332:
aSlotTime characteristic:
If dont11OperatingClassesRequired is false:
Long = 20 us
Short = 9 us
ok stsp@
|
|
- Only set value in R92C_FAST_EDCA_CTRL register if the device is
combo WiFi/Bluetooth; confirmed by Yan-Hsuan Chuan from Realtek
- There's no need to set the default value for the R92C_PIFS since
default value is 0x1c; confirmed by Yan-Hsuan Chuan from Realtek
- Disable usb Rx aggregation mode for rtl8188cu/rtl8192cu;
vendor drivers use DMA Rx aggregation mode for rtl8188cu/rtl8192cu/rtl8188eu
and use USB Rx aggregation mode for later chipsets.
Tested by stsp and me.
ok stsp@
|
|
|
|
and urtwn_r88e_dma_init() into one; from FreeBSD r291902.
- Change the way the number of pages for public queue is calculated;
Based on the vendor driver's _InitQueueReservedPage(), the formula for
calculation of the number of pages for public priority queue is as follows:
if the device has 3 endpoints:
PUBQ = total number of Tx pages - HQ - LQ - NQ
if the device has 2 endpoints (i.e. has high and normal priority queues):
PUBQ = total number of Tx pages - HQ - NQ
- Don't write MCS8..MCS15 Tx power if the WNIC is a 1-stream Tx;
- Set R88E_TX_PAGE_COUNT to a correct value;
- Minimal enhancement in urtwn_open_pipes() for upcoming rtl8192eu chipset
support;
Tested with USB-N10 Nano (rtl8188cu), DWA-131 rev B (rtl8192cu), and
TL-WN725N v2 (rtl8188eu) on amd64.
ok stsp@
|
|
They cannot be serialized with the interrupt routine and are
useless because the driver is reinitialized right after.
Pointed by and ok mikeb@
|
|
font which is using the IBM encoding, and some potentially loaded fonts
which are either IBM or ISO encoded.
Therefore the condition checked by vga_valid_font() is always true, and
we can remove it. Thanks to miod@ for pointing this out.
OK tb@
|
|
rtl8188eu chipset.
- Small code refactoring:
- replace hardcoded rate indexes with their name, like athn(4).
- replace fields offsets with the structure; from FreeBSD r294198.
- be compliant with definitions of the efuse in vendor hal_pg.h and
rename struct r92c_rom member names: s/channel_plan/reserved5/,
s/xtal_calib/channel_plan.
- no need to disable HWPDN twice in urtwn_r88e_power_on().
Tested by stsp@ and myself with RTL8188CUS, RTL8192CU, RTL8188EU, and
RTL8188CE devices.
ok stsp@
|
|
|
|
fix from C Turt, ok miod
|
|
this mostly follows the pattern in ifq.h
ok jmatthew@
|
|
shrinks the code a bit on sparc64.
ok jmatthew@
|
|
which specified how much time may elapse without beacons before drivers
begin searching for a new AP.
Drivers convert this timeout value into the amount of beacons they're allowed
to miss. Having the stack provide this number upfront simplifies things.
ok mpi@
|
|
ok krw@ deraadt@
|
|
D-Link DWA-525 rev A2.
|
|
disable hardware cursor.
From NetBSD.
OK deraadt@
|
|
which we can safely assume isn't going to happen now. No code changes.
|
|
It has been unused since this code was imported from NetBSD.
OK mlarkin@
|
|
only active during hibernation, preallocating the the submission and completion
queues during attach as they need to be page-aligned.
tested on an x270 that successfully hibernates now.
ok dlg@
|
|
NVM_ADMIN_DEL_IOCQ does not need prp1 (just as NVM_ADMIN_DEL_IOSQ).
Remove what is likely a cut'n'paste error from the *_ADD_* code.
tested by claudio@
ok jmatthew@
|
|
Based on an initial patch by ehrhardt@ . Thanks to claudio@ for testing
and deraadt@ for advice.
"go ahead" deraadt@
|
|
changes to set the appropriate clock. Add a sc_statchg callback in the
core softc that gets called when the link status changes.
|
|
Restore behaviour from before the fix of the botched R92C_USTIME_TSF register
definition. IQ cal code was referring to this register by name, but actually
needs to use the old value. So add a register definition for the old value
under a new name (R92C_BCN_CTRL1) and use this name in the IQ cal code.
Discussed with Kevin Lo
|
|
This card can now receive packets. Transmit is still broken and
Kevin Lo reports that his 2T2R AR9380 device cannot receive yet.
|
|
According to Kevin Lo it was wrong (and is also wrong in the Linux driver).
FreeBSD made the same change in r282623.
Patch by Kevin Lo.
|
|
Don't deref an IEEE80211_CHAN_ANYC channel pointer.
ok mpi@
|
|
scsi layer, which will add one sector back
fixes incorrect disk size reporting which was causing fdisk to
create a protective MBR of one too many sectors, which caused our
EFI bootloader to fail to recognize it as a GPT disk
ok dlg
|
|
This diff corrects dmesg to properly show that all others are 1T1R, since right
now it only applies to 8188C and all others incorrectly display 0T0R.
hint & OK stsp@
|
|
Same changes as FreeBSD r311948 and r287584.
Patch submitted by Kevin Lo. Tested by me.
|
|
such that "ifconfig dwge0 lladdr 00:11:22:33:44:55" actually works.
|
|
Using a name with the 'db_' prefix makes it invisible from the dynamic
profiler.
ok deraadt@, kettenis@, visa@
|
|
It doesn't compile und hasn't been working during the last decade.
ok kettenis@, deraadt@
|
|
a frame which was retried N times was retried just once.
This punishes retry-heavy data rates even more and should reduce latency.
It does not seem to have a noticable effect on net throughput in my testing.
If this change causes throughput problems for anyone, let me know.
ok tb@ mlarkin@
|
|
constants.
The consensus is that if both operands are constant, we don't need
mallocarray. Reminded by tedu@
ok deraadt@
|
|
ok deraadt@
|
|
Errors will result in nice clean panic messages so we know what's wrong.
Reviewed by dhill visa natano jsg.
|
|
|
|
By setting "machdep.forceukbd=1" you can now use your USB keyboard in
ddb(4) even if your BIOS emulates a pckbd(4).
ok tom@, kettenis@, deraadt@
|
|
is enough.
This flag should only be set by the stack, drivers shouldn't mess
with it.
Discussed with dlg@ and mikeb@, ok mikeb@, stsp@
|
|
commands rather than proceeding to an assertion failure. This matches
how we handle the same condition with non-queued commands, and the
behaviour of every other ahci driver I can find. Add a printf there so
we might get some idea of how often this condition arises and what happens
afterwards.
ok dlg@
|
|
currently tests the return value.
ok stsp@
|
|
this lets me pass the specific argument to an aen handler in mfii.
it also unbreaks the tree.
found by jmatthew@
|
|
makes bioctl work on mfi(4) again.
while here memset a few mboxes before using them.
bioctl breakage reported by jason george
|
|
From Jan Klemkow
|
|
Works much better than firmware-based rate scaling in my testing.
ok mpi@
|
|
not tell rate scaling algos about failed retries. All attempts use the same
rate anyway, so checking whether the frame succeeded or failed is good enough.
ok mpi@
|
|
correspond to the flag stored in our stack as ac->ac_acm.
ok mpi@
|