aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/orinoco/hw.c
AgeCommit message (Collapse)AuthorFilesLines
2014-05-19cfg80211: constify more pointers in the cfg80211 APIJohannes Berg1-2/+2
This also propagates through the drivers. The orinoco driver uses the cfg80211 API structs for internal bookkeeping, and so needs a (void *) cast that removes the const - but that's OK because it allocates those pointers. Signed-off-by: Johannes Berg <[email protected]>
2014-02-28orinoco: replace function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan}Zhao, Gang1-1/+1
Replace ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan} with more generic ieee80211_{channel_to_frequency, frequency_to_channel}. File <net/cfg80211.h> has already been included. It's safe to use IEEE80211_BAND_2GHZ here. This change is a preparation for the removal of function ieee80211_{dsss_chan_to_freq, freq_to_dsss_chan}. Signed-off-by: Zhao, Gang <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-07-15orinoco: minor fixes for problems found by checkpatch.plPavel Roskin1-24/+24
Eliminate spaces before tabs. Eliminate typedefs. Add spaces around operators. Signed-off-by: Pavel Roskin <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-31Fix common misspellingsLucas De Marchi1-1/+1
Fixes generated by 'codespell' and manually reviewed. Signed-off-by: Lucas De Marchi <[email protected]>
2010-08-25orinoco: Fix walking past the end of the bufferDavid Kilroy1-3/+6
Fix walking past the end of the bitrate_table array in the case when the loop counter == BITRATE_TABLE_SIZE. Reported by: Denis Kirjanov <[email protected]> Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2010-06-03drivers/net: use __packed annotationEric Dumazet1-3/+3
cleanup patch. Use new __packed annotation in drivers/net/ Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-05-05Merge branch 'master' of ↵John W. Linville1-31/+32
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem Conflicts: drivers/net/wireless/libertas_tf/cmd.c drivers/net/wireless/libertas_tf/main.c
2010-05-03orinoco: add hermes_opsDavid Kilroy1-31/+32
Pave the way for introducing USB alternative functions. Force callers to dereference ops instead of providing wrappers. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2010-04-23Merge branch 'master' into for-davemJohn W. Linville1-0/+26
Conflicts: drivers/net/wireless/ath/ath9k/phy.c drivers/net/wireless/iwlwifi/iwl-6000.c drivers/net/wireless/iwlwifi/iwl-debugfs.c
2010-04-19orinoco: implement set_wiphy_paramsDavid Kilroy1-0/+26
... to set fragmentation and RTS thresholds. Also report RTS retry settings during wiphy init. Note that the existing semantics for enabling microwave robustness are preserved on firmwares that have it. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2010-04-03net: convert multicast list to list_headJiri Pirko1-3/+3
Converts the list and the core manipulating with it to be the same as uc_list. +uses two functions for adding/removing mc address (normal and "global" variant) instead of a function parameter. +removes dev_mcast.c completely. +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for manipulation with lists on a sandbox (used in bonding and 80211 drivers) Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2010-03-15orinoco: disable support for prism chipset by defaultPavel Roskin1-0/+7
The hostap driver provides better support for Prism chipset. Signed-off-by: Pavel Roskin <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2010-02-28wireless: convert to use netdev_for_each_mc_addrJiri Pirko1-15/+7
also added missed locking in rndis_wlan.c Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-10-27orinoco: use cfg80211 ethtool opsDavid Kilroy1-9/+24
Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-09-02Merge branch 'master' of ↵David S. Miller1-1/+1
master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/yellowfin.c
2009-08-17orinoco: correct key bounds check in orinoco_hw_get_tkip_ivJohn W. Linville1-1/+1
If key is 4 that is an array out of bounds. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-08-14orinoco: consolidate storage of WEP and TKIP keysDavid Kilroy1-8/+34
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-08-14orinoco: add function to retrieve current bssidDavid Kilroy1-0/+12
We will need this from the cfg80211 disassociate call. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-08-14orinoco: move disassociation to hw.cDavid Kilroy1-0/+24
This allows the disassociation to be called via cfg80211. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-08-14orinoco: pass orinoco_set_tkip_key the sequence lengthsDavid Kilroy1-12/+18
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-08-14orinoco: use local types for auth alg and sequence lengthDavid Kilroy1-6/+6
This helps in the refactorring required to convert the driver to cfg80211. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: convert scanning to cfg80211David Kilroy1-0/+85
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: convert mode setting to cfg80211David Kilroy1-4/+8
Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: provide generic commit functionDavid Kilroy1-0/+227
This allows changes to be commited from cfg80211 functions. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: Change set_tkip to use orinoco_private instead of hermes_tDavid Kilroy1-2/+3
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: use dev_err in early initialisation routinesDavid Kilroy1-50/+42
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: Move FID allocation to hw.cDavid Kilroy1-0/+23
This is part of refactorring the initialisation code so that we can load the firmware before registerring with netdev. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: Move card reading code into hw.cDavid Kilroy1-0/+112
This is part of refactorring the initialisation code so that we can load the firmware before registerring with netdev. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: Move firmware capability determination into hw.cDavid Kilroy1-0/+216
This is part of refactorring the initialisation code so that we can load the firmware before registerring with netdev. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-04-16orinoco: correct timeout logic in __orinoco_hw_set_tkip_key()Pavel Roskin1-5/+3
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 <[email protected]> Signed-off-by: Pavel Roskin <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Move hardware functions into separate fileDavid Kilroy1-0/+586
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>