aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco/hw.c
Commit message (Collapse)AuthorAge
* Merge branch 'master' of ↵David S. Miller2009-09-02
|\ | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/yellowfin.c
| * orinoco: correct key bounds check in orinoco_hw_get_tkip_ivJohn W. Linville2009-08-17
| | | | | | | | | | | | | | If key is 4 that is an array out of bounds. Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: consolidate storage of WEP and TKIP keysDavid Kilroy2009-08-14
| | | | | | | | | | | | | | | | | | | | | | When TKIP support was added, we stored the keys separately to avoid issues when both TKIP and WEP keys are sent to the driver. We need to consolidate the storage to convert to cfg80211, so do this first and try iron out the issues. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: add function to retrieve current bssidDavid Kilroy2009-08-14
| | | | | | | | | | | | | | We will need this from the cfg80211 disassociate call. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: move disassociation to hw.cDavid Kilroy2009-08-14
| | | | | | | | | | | | | | This allows the disassociation to be called via cfg80211. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: pass orinoco_set_tkip_key the sequence lengthsDavid Kilroy2009-08-14
| | | | | | | | | | | | | | | | When we store the keys for cfg80211, the sequence lengths will also be stored. So avoid assuming the sequence lengths at this level. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: use local types for auth alg and sequence lengthDavid Kilroy2009-08-14
| | | | | | | | | | | | | | | | This helps in the refactorring required to convert the driver to cfg80211. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: convert scanning to cfg80211David Kilroy2009-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | This removes the custom scan cache used by orinoco. We also have to avoid calling cfg80211_scan_done from the hard interrupt, so we offload the entirety of scan processing to a workqueue. This may behave strangely if you start scanning just prior to suspending... Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: convert mode setting to cfg80211David Kilroy2009-07-10
| | | | | | | | | | Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: provide generic commit functionDavid Kilroy2009-07-10
| | | | | | | | | | | | | | This allows changes to be commited from cfg80211 functions. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: Change set_tkip to use orinoco_private instead of hermes_tDavid Kilroy2009-07-10
| | | | | | | | | | | | | | | | | | | | hw.h does not include hermes.h, and none of the other functions requires types from that file. Also hermes_t is a (discouraged) typedef so we can't add a forward declaration. Therefore change this function to use orinoco_private. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: use dev_err in early initialisation routinesDavid Kilroy2009-07-10
| | | | | | | | | | | | | | | | | | | | | | | | This allows us to use determine_fw_capabilities, orinoco_hw_read_card_setting and orinoco_hw_allocate_fid prior to netdev registration. Since dev_dbg only prints if DEBUG is defined (or dynamic debug is enabled), move a couple of the more useful prints up to info. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: Move FID allocation to hw.cDavid Kilroy2009-07-10
| | | | | | | | | | | | | | | | This is part of refactorring the initialisation code so that we can load the firmware before registerring with netdev. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: Move card reading code into hw.cDavid Kilroy2009-07-10
| | | | | | | | | | | | | | | | This is part of refactorring the initialisation code so that we can load the firmware before registerring with netdev. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* | orinoco: Move firmware capability determination into hw.cDavid Kilroy2009-07-10
|/ | | | | | | | This is part of refactorring the initialisation code so that we can load the firmware before registerring with netdev. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* orinoco: correct timeout logic in __orinoco_hw_set_tkip_key()Pavel Roskin2009-04-16
| | | | | | | | | | | If the value read from HERMES_RID_TXQUEUEEMPTY becomes 0 after exactly 100 readings, we wrongly consider it a timeout. Rewrite the clever while loop as a for loop that does the right thing and looks simpler. Reported by Juha Leppanen <juha_motorsportcom@luukku.com> Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* orinoco: Move hardware functions into separate fileDavid Kilroy2009-02-13
No functional change. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>