History log of /openbsd-current/sys/dev/ic/ar5210.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.48 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.47 12-Jan-2016 stsp

Remove wireless turbo mode support. It is a non-standard extension
which only worked with ath(4) devices from a decade ago.
Diff tested on ath(4) hardware by me to verify that 11a/b modes still work.
ok reyk deraadt chris sthen kettenis


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.46 12-Jul-2014 tedu

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.


Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.45 02-Jun-2009 reyk

replace custom macro AR5K_ELEMENTS() with nitems()


Revision tags: OPENBSD_4_5_BASE
# 1.44 15-Jan-2009 grange

const void foo() makes no sense. No binary change.

ok niklas@ otto@


# 1.43 29-Aug-2008 reyk

add a HAL function to force disabling the hardware crypto engine


# 1.42 27-Aug-2008 damien

introduce new IEEE80211_STA_ONLY kernel option that can be set to
remove IBSS and HostAP support from net80211 and 802.11 drivers.
it can be used to shrink RAMDISK kernels for instance (like what
was done for wi(4)).
it also has the benefit of highlighting what is specific to IBSS
and HostAP modes in the code.
the cost is that we now have two code paths to maintain.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.41 01-Nov-2007 reyk

backout last "fix" because it breaks operation on some devices. even
if the fix looks right, it seems to expose another problem that i
haven't found yet.

figured out by Denis Doroshenko at gmail dot com


# 1.40 29-Oct-2007 reyk

fix the setup of Tx descriptors. the frame type and "no ack" bits were
initialized in ar5k_ar521*_setup_tx_desc() but cleared in
ar5k_ar521*_fill_tx_desc() by setting the segment length incorrectly.

From ath5k via Nick Kossifidis (mickflemm at gmail dot com)*

---snip---
The missing no_ack in broadcast frames caused them to be retried up to
the retry_limit(1+4=5 transmissions by default).
---snap---

* it was explicitly mentioned that it is ISC-licensed now


Revision tags: OPENBSD_4_2_BASE
# 1.39 10-Apr-2007 miod

``it's'' -> ``its'' when the grammar gods require this change.


# 1.38 12-Mar-2007 reyk

add some HAL functions (again) inspired by the changes from the
madwifi-old-openhal project. this was backed out the last time because
it was too close to the release and i didn't respect the ABI/API lock.


# 1.37 12-Mar-2007 reyk

do not use bcopy to set the mac address registers. this diff should
fix the "hal" on big endian systems.

thanks to the madwifi-old-openhal people


Revision tags: OPENBSD_4_1_BASE
# 1.36 05-Mar-2007 deraadt

back out, reyk is not paying attention


# 1.35 05-Mar-2007 reyk

Add some HAL functions.

From madwifi-old-openhal via Nick Kossifidis (mickflemm at gmail dot com)

Bump copyright while I'm here.


# 1.34 14-Feb-2007 jsg

Consistently spell FALLTHROUGH to appease lint.
ok kettenis@ cloder@ tom@ henning@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.33 18-Dec-2005 reyk

Update my e-mail address in the copyright statement, no binary changes.


# 1.32 07-Oct-2005 reyk

KNF


# 1.31 04-Oct-2005 reyk

fix a bug in Tx descriptor processing.

found by David Malone


# 1.30 19-Sep-2005 reyk

don't attach unsupported radio chipsets

based on a diff by jsg@


# 1.29 10-Sep-2005 jsg

ansi, no binary change.
ok reyk@


Revision tags: OPENBSD_3_8_BASE
# 1.28 14-Aug-2005 miod

catched->caught


# 1.27 02-Aug-2005 reyk

reduce stack usage

spotted out by jsg@


# 1.26 17-Jun-2005 reyk

remove non-constant array initializers which is a GNU extension.
suggested by anil some time ago.


# 1.25 27-May-2005 reyk

remove some misplaced htole32s


# 1.24 24-May-2005 reyk

ath_hal_rx_monitor should be used for link state monitoring instead of
setting the promisc mode. rename it to ath_hal_rx_signal and remove
the incorrect promisc flag. this should fix some problems with ath
running in forwarding mode.


# 1.23 21-May-2005 reyk

sync power management settings. this should fix some unrecoverable
sleep mode timeouts for ar5210, ar5211 and ar5212.


# 1.22 08-May-2005 reyk

the ar5210 is silicon version 0, not 1.


# 1.21 08-May-2005 reyk

fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6.


# 1.20 18-Apr-2005 reyk

beautify the code by renaming HAL functions with capitalized words (i
always wanted to do that). this breaks HAL compatibility but porting
should be easy, have a look at athvar.h. no functional changes.


# 1.19 08-Apr-2005 reyk

move reset of HAL descriptors to ath.c


# 1.18 08-Apr-2005 reyk

bye bye unportable bitfields


# 1.17 06-Apr-2005 reyk

pad keys with zeros to a supported key length. this is bad but seems
to be the default WEP behaviour for string-based keys and allows
commands like "ifconfig ath0 nwkey yuck" to work...


Revision tags: OPENBSD_3_7_BASE
# 1.16 20-Mar-2005 reyk

some fixes for wep and reset.

btw.: this is a commit using an ar5212 in 11b mode...

ok deraadt@, krw@


# 1.15 18-Mar-2005 reyk

ignore bmiss interrupts for now.


# 1.14 10-Mar-2005 reyk

fix beacon handling


# 1.13 17-Feb-2005 reyk

a new year and a new, less restrictive license. because it has to be
free.

go ahead miod@


# 1.12 17-Feb-2005 reyk

knf


# 1.11 17-Feb-2005 reyk

cosmetic changes, fix regdomain code and beacon handling


# 1.10 16-Feb-2005 reyk

fix an invalid condition which returns on an invalid beacon state.


# 1.9 09-Jan-2005 reyk

fix regulation domain handling


# 1.8 31-Dec-2004 reyk

sync with the latest work and add some stuff needed by the upcoming ar5211/ar5212
support. some further cleanups and changes will follow.


# 1.7 23-Nov-2004 reyk

store number of supported gpio pins


# 1.6 11-Nov-2004 reyk

some fixes for beeing compatible with gcc3 as noticed by some people.
thanks to Joerg Sonnenberger and Nathan Binkert.


# 1.5 08-Nov-2004 reyk

use __packed instead of __attribute__ ((__packed__)) (ok miod@), check
possible NULL mac in the keycache function.


# 1.4 03-Nov-2004 reyk

knf, use positive error values (suggested by miod@)


# 1.3 02-Nov-2004 reyk

spacing, beautify dmesg output


# 1.2 02-Nov-2004 reyk

removed some printfs


# 1.1 02-Nov-2004 reyk

import of a free hal part for the ath driver as a replacement for the
binary-only hal module found in FreeBSD and NetBSD. OpenBSD's approach
is based on reverse engineering because it is _not_ possible to
include a non-free and binary-only piece of software in a 100% free
operating system. it still lacks some features found in the "official" hal
module but this will be done very soon with a help by a lot of
contributors - because it's free.

ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.47 12-Jan-2016 stsp

Remove wireless turbo mode support. It is a non-standard extension
which only worked with ath(4) devices from a decade ago.
Diff tested on ath(4) hardware by me to verify that 11a/b modes still work.
ok reyk deraadt chris sthen kettenis


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.46 12-Jul-2014 tedu

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.


Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.45 02-Jun-2009 reyk

replace custom macro AR5K_ELEMENTS() with nitems()


Revision tags: OPENBSD_4_5_BASE
# 1.44 15-Jan-2009 grange

const void foo() makes no sense. No binary change.

ok niklas@ otto@


# 1.43 29-Aug-2008 reyk

add a HAL function to force disabling the hardware crypto engine


# 1.42 27-Aug-2008 damien

introduce new IEEE80211_STA_ONLY kernel option that can be set to
remove IBSS and HostAP support from net80211 and 802.11 drivers.
it can be used to shrink RAMDISK kernels for instance (like what
was done for wi(4)).
it also has the benefit of highlighting what is specific to IBSS
and HostAP modes in the code.
the cost is that we now have two code paths to maintain.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.41 01-Nov-2007 reyk

backout last "fix" because it breaks operation on some devices. even
if the fix looks right, it seems to expose another problem that i
haven't found yet.

figured out by Denis Doroshenko at gmail dot com


# 1.40 29-Oct-2007 reyk

fix the setup of Tx descriptors. the frame type and "no ack" bits were
initialized in ar5k_ar521*_setup_tx_desc() but cleared in
ar5k_ar521*_fill_tx_desc() by setting the segment length incorrectly.

From ath5k via Nick Kossifidis (mickflemm at gmail dot com)*

---snip---
The missing no_ack in broadcast frames caused them to be retried up to
the retry_limit(1+4=5 transmissions by default).
---snap---

* it was explicitly mentioned that it is ISC-licensed now


Revision tags: OPENBSD_4_2_BASE
# 1.39 10-Apr-2007 miod

``it's'' -> ``its'' when the grammar gods require this change.


# 1.38 12-Mar-2007 reyk

add some HAL functions (again) inspired by the changes from the
madwifi-old-openhal project. this was backed out the last time because
it was too close to the release and i didn't respect the ABI/API lock.


# 1.37 12-Mar-2007 reyk

do not use bcopy to set the mac address registers. this diff should
fix the "hal" on big endian systems.

thanks to the madwifi-old-openhal people


Revision tags: OPENBSD_4_1_BASE
# 1.36 05-Mar-2007 deraadt

back out, reyk is not paying attention


# 1.35 05-Mar-2007 reyk

Add some HAL functions.

From madwifi-old-openhal via Nick Kossifidis (mickflemm at gmail dot com)

Bump copyright while I'm here.


# 1.34 14-Feb-2007 jsg

Consistently spell FALLTHROUGH to appease lint.
ok kettenis@ cloder@ tom@ henning@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.33 18-Dec-2005 reyk

Update my e-mail address in the copyright statement, no binary changes.


# 1.32 07-Oct-2005 reyk

KNF


# 1.31 04-Oct-2005 reyk

fix a bug in Tx descriptor processing.

found by David Malone


# 1.30 19-Sep-2005 reyk

don't attach unsupported radio chipsets

based on a diff by jsg@


# 1.29 10-Sep-2005 jsg

ansi, no binary change.
ok reyk@


Revision tags: OPENBSD_3_8_BASE
# 1.28 14-Aug-2005 miod

catched->caught


# 1.27 02-Aug-2005 reyk

reduce stack usage

spotted out by jsg@


# 1.26 17-Jun-2005 reyk

remove non-constant array initializers which is a GNU extension.
suggested by anil some time ago.


# 1.25 27-May-2005 reyk

remove some misplaced htole32s


# 1.24 24-May-2005 reyk

ath_hal_rx_monitor should be used for link state monitoring instead of
setting the promisc mode. rename it to ath_hal_rx_signal and remove
the incorrect promisc flag. this should fix some problems with ath
running in forwarding mode.


# 1.23 21-May-2005 reyk

sync power management settings. this should fix some unrecoverable
sleep mode timeouts for ar5210, ar5211 and ar5212.


# 1.22 08-May-2005 reyk

the ar5210 is silicon version 0, not 1.


# 1.21 08-May-2005 reyk

fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6.


# 1.20 18-Apr-2005 reyk

beautify the code by renaming HAL functions with capitalized words (i
always wanted to do that). this breaks HAL compatibility but porting
should be easy, have a look at athvar.h. no functional changes.


# 1.19 08-Apr-2005 reyk

move reset of HAL descriptors to ath.c


# 1.18 08-Apr-2005 reyk

bye bye unportable bitfields


# 1.17 06-Apr-2005 reyk

pad keys with zeros to a supported key length. this is bad but seems
to be the default WEP behaviour for string-based keys and allows
commands like "ifconfig ath0 nwkey yuck" to work...


Revision tags: OPENBSD_3_7_BASE
# 1.16 20-Mar-2005 reyk

some fixes for wep and reset.

btw.: this is a commit using an ar5212 in 11b mode...

ok deraadt@, krw@


# 1.15 18-Mar-2005 reyk

ignore bmiss interrupts for now.


# 1.14 10-Mar-2005 reyk

fix beacon handling


# 1.13 17-Feb-2005 reyk

a new year and a new, less restrictive license. because it has to be
free.

go ahead miod@


# 1.12 17-Feb-2005 reyk

knf


# 1.11 17-Feb-2005 reyk

cosmetic changes, fix regdomain code and beacon handling


# 1.10 16-Feb-2005 reyk

fix an invalid condition which returns on an invalid beacon state.


# 1.9 09-Jan-2005 reyk

fix regulation domain handling


# 1.8 31-Dec-2004 reyk

sync with the latest work and add some stuff needed by the upcoming ar5211/ar5212
support. some further cleanups and changes will follow.


# 1.7 23-Nov-2004 reyk

store number of supported gpio pins


# 1.6 11-Nov-2004 reyk

some fixes for beeing compatible with gcc3 as noticed by some people.
thanks to Joerg Sonnenberger and Nathan Binkert.


# 1.5 08-Nov-2004 reyk

use __packed instead of __attribute__ ((__packed__)) (ok miod@), check
possible NULL mac in the keycache function.


# 1.4 03-Nov-2004 reyk

knf, use positive error values (suggested by miod@)


# 1.3 02-Nov-2004 reyk

spacing, beautify dmesg output


# 1.2 02-Nov-2004 reyk

removed some printfs


# 1.1 02-Nov-2004 reyk

import of a free hal part for the ath driver as a replacement for the
binary-only hal module found in FreeBSD and NetBSD. OpenBSD's approach
is based on reverse engineering because it is _not_ possible to
include a non-free and binary-only piece of software in a 100% free
operating system. it still lacks some features found in the "official" hal
module but this will be done very soon with a help by a lot of
contributors - because it's free.

ok deraadt@