CVS log for src/sys/dev/ic/bwfm.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Dec 31 21:32:43 2023 UTC (11 months, 1 week ago) by gutteridge
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -6
lines
bwfm.c: KNF a comment (spaces->tabs)
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Aug 1 07:04:15 2023 UTC (16 months, 1 week ago) by mrg
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2
lines
fix simple mis-matched function prototype and definitions.
most of these are like, eg
void foo(int[2]);
with either of these
void foo(int*) { ... }
void foo(int[]) { ... }
in some cases (such as stat or utimes* calls found in our header files),
we now match standard definition from opengroup.
found by GCC 12.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Dec 4 09:25:04 2022 UTC (2 years ago) by mlelstv
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +12 -7
lines
Make power save mode configurable by ifconfig, now defaults to non-powersave
like other interfaces.
Remove cargo-culted check for manual roaming.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Dec 3 16:06:20 2022 UTC (2 years ago) by mlelstv
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +18 -11
lines
Fix bug in protocol parser that often caused fatal 'checksum error'.
Defer power save setting to interface start.
More verbose on errors.
Allow build without FDT.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Mar 14 06:40:12 2022 UTC (2 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +82 -4
lines
Add OpenBSD to code to optionally load CLM (Country Locale Matrix) files.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:28 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +2 -10
lines
Sync w/ HEAD.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:18 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -10
lines
if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:
https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html
However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:
https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html
So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)
There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.
(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)
Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 17 17:26:18 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +1 -2
lines
Sync with HEAD.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Apr 13 04:13:52 2021 UTC (3 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-cfargs-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -2
lines
remove extra line that clearly isn't meant to be there and may trigger
uninitialised reads of variables.
Revision 1.14.6.3: download - view: text, markup, annotated - select for diffs
Mon Aug 17 11:22:45 2020 UTC (4 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.14.6.2: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.6.2: +17 -16
lines
Pull up following revision(s) (requested by mrg in ticket #1052):
sys/dev/ic/bwfm.c: revision 1.28
sys/dev/ic/bwfm.c: revision 1.29
sys/dev/sdmmc/if_bwfm_sdio.c: revision 1.22
sys/dev/ic/bwfmreg.h: revision 1.7
sys/dev/ic/bwfmvar.h: revision 1.11
sys/dev/ic/bwfmvar.h: revision 1.12
(all via patch)
Add include guards and appropriate includes to bwfmreg.h, bwfmvar.h.
No functional change intended.
Need <sys/kmem.h> for kmem_*.
Currently accidentally side-loaded by <sys/pcq.h>.
bwfm: Switch from pcq to pool_cache.
pcq_get is required to be serialized, but it's far from clear that it
is serialized here.
Revision 1.14.6.2: download - view: text, markup, annotated - select for diffs
Sun Aug 9 14:03:08 2020 UTC (4 years, 4 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.14.6.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.6.1: +15 -13
lines
Pull up following revision(s) (requested by mrg in ticket #1042):
sys/dev/sdmmc/if_bwfm_sdio.c: revision 1.19
sys/dev/sdmmc/ld_sdmmc.c: revision 1.38
sys/dev/sdmmc/sdmmcvar.h: revision 1.35
sys/dev/sdmmc/if_bwfm_sdio.c: revision 1.5
sys/dev/ic/bwfm.c: revision 1.26
sys/dev/ic/bwfm.c: revision 1.27
sys/dev/sdmmc/if_bwfm_sdio.c: revision 1.20
sys/dev/sdmmc/if_bwfm_sdio.c: revision 1.21
sys/dev/sdmmc/sdmmc_io.c: revision 1.20
sys/dev/sdmmc/sdmmc_mem.c: revision 1.72
sys/dev/sdmmc/sdmmc.c: revision 1.40
sys/dev/sdmmc/sdmmc_ioreg.h: revision 1.6
sys/dev/sdmmc/if_bwfm_sdio.c: revision 1.16
Don't pass empty mbufs to the network stack.
Avoid changing signedness bit with << in sdmmc_ioreg.h
Reported by <prlw1>
If the controller doesn't support switch func (opcode 6) then skip
setting this but continue with other settings. This allows us to use
a card, albeit at a lower speed.
Fix races in sdmmc tasks and teach ld@sdmmc to abort xfers on detach.
- Teach sdmmc_add_task to queue it only if not already queued.
- Remove now-redundant logic to avoid repeated queueing elsewhere.
- Teach sdmmc_del_task to wait until task has completed.
- Call sdmmc_del_task in various needful places.
- Replace abuse of pcq by a lock and a tailq.
(pcq is multi-producer, _single_-consumer, but there are potentially
multiple consumers here and really only one producer.)
- Teach ld_sdmmc to abort xfers on detach.
(Mechanism is kinda kludgey but it'll do for now; any effort one is
tempted to spend overhauling this should be spent overhauling sdmmc
to support proper asynchronous commands.)
- Make sure ld_sdmmc_discard either returns failure or eventually calls
ldenddiscard.
XXX Currently ld_sdmmc_detach aborts xfers _before_ ldbegindetach has
has committed to detaching or not. This is currently necessary to
avoid a deadlock because ldbegindetach waits for xfers to drain --
which strikes me as wrong; ldbegindetach shouldn't wait for anything,
and should only make the decision to commit to detaching or not so
the caller can decide whether to abort xfers before we actually wait
for them in ldenddetach.
XXX pullup -- although this changes some kernel symbols (sdmmc_add_task
and sdmmc_del_task), it shouldn't affect any existing modules; the only
module that uses sdmmc is ld_sdmmc.kmod, which is `.if 0' in the build
so there shouldn't be any of them floating around.
Make this work on big endian machines
move some of the patching of callbacks and other data after
ieee80211_ifattach() but before if_deferred_start_init().
may fix panic i saw in after restarting wpa_supplicant.
from mlelstv.
only ask for SDPCMD_INTSTATUS_HMB_SW_MASK and SDPCMD_INTSTATUS_CHIPACTIVE
interrupts, not all of them. we only ack these ones.
mostly fixes pinebookpro wifi hard hangs. still is problematic and can
trigger interrupt storm that appears as a hard hang without NET_MPSAFE,
and a follow up, less clearly right, change will reduce that to a soft
hang of the interface that can be cleared with 'ifconfig bwfm0 down up',
and even often recovers itself now.
clear all interrupts, not just those we expect from the hostintmask.
this removes the final hard hang i have seen in pinebookpro wifi,
though one may still need to 'ifconfig bwfm0 down up' occasionally,
so we still have bugs to fix here (the hang is usually associated
with 'checksum error' from bwfm/sdio.)
Sort #includes. Nix trailing whitespace.
No functional change intended.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jul 22 17:23:52 2020 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex
Branch point for: thorpej-cfargs
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +17 -16
lines
bwfm: Switch from pcq to pool_cache.
pcq_get is required to be serialized, but it's far from clear that it
is serialized here.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Jul 22 17:21:25 2020 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -1
lines
Add include guards and appropriate includes to bwfmreg.h, bwfmvar.h.
No functional change intended.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jul 22 17:18:49 2020 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -9
lines
Sort #includes. Nix trailing whitespace.
No functional change intended.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Jul 13 05:38:52 2020 UTC (4 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -5
lines
move some of the patching of callbacks and other data after
ieee80211_ifattach() but before if_deferred_start_init().
may fix panic i saw in after restarting wpa_supplicant.
from mlelstv.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat May 30 15:55:47 2020 UTC (4 years, 6 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -12
lines
discussed with thorpej@, and it seems it's better to allocate the bss
alignment buffer statically (as part of softc) just to be sure to not
affect performance
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat May 30 14:03:08 2020 UTC (4 years, 6 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +8 -5
lines
reduce stack usage in bwfm_rx_event_cb(), can use KM_SLEEP because
this is called from workqueue handler (i.e. thread context)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat May 30 13:41:58 2020 UTC (4 years, 6 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4
lines
constify, and make static where possible
Revision 1.12.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.2: +188 -52
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +182 -4
lines
Merge changes from current as of 20200406
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Mar 25 04:53:11 2020 UTC (4 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -1
lines
Add a file type entry for CLM files.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Mar 25 03:44:44 2020 UTC (4 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +175 -1
lines
- Refactor the firmware loading code into a set of common routines in the
core driver that understand how to find model-specific files before the
generic files. This greatly simplifies the firmware loading procedure
in each of the bus front ends. Adding additional firmware file types
(such as CLM files) much simpler.
- Make firmware image selection table-driven rather than a set of switch()
and if() statements.
- Add several additional firmware image entries.
Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -3
lines
Sync with head.
Revision 1.14.6.1: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:40:43 2020 UTC (4 years, 9 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +189 -53
lines
Pull up following revision(s) (requested by mrg in ticket #717):
sys/dev/fdt/dwcmmc_fdt.c 1.11
sys/dev/ic/bwfm.c 1.15-1.18
sys/dev/ic/bwfmreg.h 1.4-1.6
sys/dev/ic/bwfmvar.h 1.4,1.5
sys/dev/ic/dwc_mmc.c 1.21,1.22
sys/dev/ic/dwc_mmc_reg.h 1.8,1.9,1.12,1.13
sys/dev/pcmcia/pcmciareg.h 1.11
sys/dev/sdmmc/if_bwfm_sdio.c 1.4,1.6-1.12
sys/dev/sdmmc/if_bwfm_sdio.h 1.1,1.2
sys/dev/sdmmc/sdhc.c 1.105,1.106
sys/dev/sdmmc/sdmmc.c 1.37,1.39
sys/dev/sdmmc/sdmmc_cis.c 1.6,1.8
sys/dev/sdmmc/sdmmc_io.c 1.15-1.19
sys/dev/sdmmc/sdmmc_ioreg.h 1.4,1.5
sys/dev/sdmmc/sdmmc_mem.c 1.69-1.71
sys/dev/sdmmc/sdmmcdevs 1.5-1.8
sys/dev/sdmmc/sdmmcvar.h 1.31,1.33,1.34
sys/net/if_media.h 1.66
Add Broadcom devices
-
Fix typo
-
add PCMCIA_CISTPL_SDIO definition.
-
From OpenBSD:
- move event handling to workqueue
- check for save/restore capability
-
Tag work queue as MPsafe and increase length.
-
Juse use bpf_mtap(), the 802.11 encapsulation is handled by firmware.
-
From OpenBSD:
- support block length per function
- add functions to read/write regions
-
Decode (but not use) SDIO tuple in CIS.
-
Fix locking.
-
Add more SDIO defines (partially from version 3.0).
-
From OpenBSD:
- All the missing pieces (firmware load, chip setup, protocol handling)
TX queue and interrupt handling via sdmmc_task.
-
Fix locking.
-
Fix packet parsing.
-
Add parser for original firmware config files.
-
tagging work queue as MPSAFE was premature. Revert.
-
SD_IO_RW_EXTENDED is a data transfer command, so set ADTC flag instead of AC
Use correct function to verify if a task has been queued. Avoids race
that can corrupt the task queue.
-
More register definitions.
-
Add IFM_IEEE80211_VHT subtype, IFM_IEEE80211_11AC operating mode, and missing descriptions
-
If firmware is connected in HT or VHT mode, report it to SIOCGIFMEDIA
-
white space police.
Skip setting power when the voltage doesn't change.
Also increase some timeouts.
-
Add and use sdmmc_pause to avoid long-term busy waits.
-
Add sdio abort function.
-
Additional error messages.
-
Print parameters for SDIO devices.
-
Minor cosmetics.
-
Simplyfy sdmmc_io_set_blocklen function signature by dropping the
extra softc pointer. Aligns with OpenBSD.
-
Missing commit for sdio abort function.
-
More code from OpenBSD
-
no need to splnet() when enqueing packets
-
explicit structure padding
-
make internal functions static
-
also prepare for GPIO interrupts.
-
Avoid warnings for tautological shifts as sole conditional.
-
Follow the Linux driver an use the FDT "compatible" property to build a
filename for the nvram config file, fall back to the standard filename.
E.g.
[Caching 123 nodes and 1093 properties]
compatible 73696e6f 766f6970 2c627069 2d6d322d "sinovoip,bpi-m2-
0010: 7a65726f 00...... ........ ........ zero"
0015: 616c6c77 696e6e65 722c7375 6e38692d "allwinner,sun8i-
0025: 68322d70 6c757300 ........ ........ h2-plus"
interrupt-parent 00000001 ........ ........ ........ ....
model 42616e61 6e612050 69204250 492d4d32 "Banana Pi BPI-M2
0010: 2d5a6572 6f00.... ........ ........ -Zero"
name 00...... ........ ........ ........ ""
serial-number 30326330 30303432 65636431 36376566 02c00042ecd167ef
0010: 00...... ........ ........ ........ .
-rw-r--r-- 1 root wheel 875 Nov 2 12:06 brcmfmac43430-sdio.AP6212.txt
lrwxr-xr-x 1 root wheel 29 Dec 30 16:19 brcmfmac43430-sdio.sinovoip,bpi-m2-zero.txt -> brcmfmac43430-sdio.AP6212.txt
-rw-r--r-- 1 root wheel 874 Jun 30 2019 brcmfmac43430-sdio.raspberrypi,3-model-b.txt
-rw-r--r-- 1 root wheel 1864 Jun 30 2019 brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
lrwxr-xr-x 1 root wheel 29 Dec 30 11:24 brcmfmac43455-sdio.raspberrypi,4-model-b-plus.txt -> brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
-
Add product ID for Broadcom BCM43455
-
Use correct firmware for BCM43456
-
size check was backwards.
-
Be less noisy for some commands.
-
Fix DWC_MMC_INT_SDIO_INT bit
-
dwc_mmc fixes:
- Rockchip uses a different SDIO int bit, so take this into consideration
- Avoid unnecessary resets and always wait for resets to complete
- kpause instead of delay while holding spinlock
- Do not attempt autostop for SD_IO_RW_EXTENDED commands
- Allow for sub-blklen byte counts for single block transfers
-
More SDIO stability and performance fixes
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Jan 29 14:14:55 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
Adopt <net/if_stats.h>.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Dec 27 09:22:20 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2
lines
s/suport/support/
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Oct 28 06:37:51 2019 UTC (5 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +55 -22
lines
More code from OpenBSD
no need to splnet() when enqueing packets
explicit structure padding
make internal functions static
also prepare for GPIO interrupts.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 3 14:42:20 2019 UTC (5 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +52 -1
lines
If firmware is connected in HT or VHT mode, report it to SIOCGIFMEDIA
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Sep 2 07:25:48 2019 UTC (5 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2
lines
tagging work queue as MPSAFE was premature. Revert.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Sep 1 05:40:39 2019 UTC (5 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +90 -38
lines
From OpenBSD:
- move event handling to workqueue
- check for save/restore capability
Tag work queue as MPsafe and increase length.
Juse use bpf_mtap(), the 802.11 encapsulation is handled by firmware.
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -2
lines
Sync with HEAD
Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Wed Oct 31 09:23:00 2018 UTC (6 years, 1 month ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +1978 -0
lines
Backport of bfwm code, requested by maya in ticket #1072:
sys/dev/ic/bwfm.c 1.14
sys/dev/ic/bwfmreg.h 1.3
sys/dev/ic/bwfmvar.h 1.3
sys/dev/pci/if_bwfm_pci.c 1.4
sys/dev/pci/if_bwfm_pci.h 1.8
sys/dev/usb/if_bwfm_usb.c 1.8
via patch.
Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:49 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.2: +3 -2
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.14.2.1
Sun Sep 2 19:46:53 2018 UTC (6 years, 3 months ago) by martin
Branches: netbsd-8
FILE REMOVED
Changes since revision 1.14: +0 -1978
lines
file bwfm.c was added on branch netbsd-8 on 2018-10-31 09:23:00 +0000
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 2 19:46:53 2018 UTC (6 years, 3 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
netbsd-9-base,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
isaki-audio2-base,
isaki-audio2
Branch point for: netbsd-9,
netbsd-8
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -1
lines
Initialize if_stop so suspend won't jump to NULL.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 1 22:01:03 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
bwfm has only one tx descriptor; limit mbuf chains to one segment.
PR kern/53287
Can't use m_defrag because it always yields two segments.
Discussion on tech-net:
https://mail-index.netbsd.org/tech-net/2018/09/01/msg007031.html
Diagnosed and tested by maya.
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:45 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +2 -2
lines
Sync with HEAD
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:00 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2
lines
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:05 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +286 -48
lines
Sync with HEAD
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri May 11 07:41:11 2018 UTC (6 years, 7 months ago) by maya
Branches: MAIN
CVS tags: pgoyette-compat-0625,
pgoyette-compat-0521
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +286 -48
lines
sync with openbsd bwfm to some extent.
add a txcheck
set chip active/passive for more kinds of chips
add wrapper around setting active/passive
detect chip RAM
make bwfm_rx take an mbuf
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jan 16 18:42:43 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +19 -19
lines
Prepend 'sp_' to the name of the fields, so that they can easily be found
via NXR or grep.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jan 16 14:23:15 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1
lines
Mmh refix previous, we also need to make sure frm[1] is there.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jan 16 13:48:21 2018 UTC (6 years, 10 months ago) by maxv
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +13 -2
lines
Fix overflow, noted by Maya.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Dec 18 13:56:14 2017 UTC (6 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +8 -7
lines
Support promiscuous mode
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Dec 18 12:42:21 2017 UTC (6 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -8
lines
Use ieee80211_media_status
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Dec 18 12:36:16 2017 UTC (6 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -1
lines
Stop the device at attach in case it was previously initialized
Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +1728 -0
lines
update from HEAD
Revision 1.4.2.1
Mon Oct 23 15:21:10 2017 UTC (7 years, 1 month ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.4: +0 -1728
lines
file bwfm.c was added on branch tls-maxphys on 2017-12-03 11:37:03 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Oct 23 15:21:10 2017 UTC (7 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -1
lines
Initialize txrate to 0 for new associations; firmware handles rate adaptation for us
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:31:17 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -2
lines
If if_initialize() failed in the attach function, free resources and return.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Oct 20 23:38:21 2017 UTC (7 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +12 -2
lines
Fix an alignment problem with scan results within an escan event
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Oct 19 23:58:41 2017 UTC (7 years, 1 month ago) by jmcneill
Branches: MAIN
Add driver for Broadcom 802.11a/b/g/n/ac USB wireless devices, based on
the OpenBSD bwfm(4) driver.
CVSweb <webmaster@jp.NetBSD.org>