aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/orinoco
AgeCommit message (Collapse)AuthorFilesLines
2009-08-04orinoco: enable cfg80211 "set_channel" operationHolger Schurig1-0/+41
Signed-off-by: Holger Schurig <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-16Merge branch 'master' of ↵David S. Miller1-0/+2
master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/wireless/orinoco/main.c
2009-07-12netdev: restore MAC address set and validate operationsBen Hutchings1-1/+2
alloc_etherdev() used to install default implementations of these operations, but they must now be explicitly installed in struct net_device_ops. Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-07-10wireless: remove redundant tests on unsignedRoel Kluin1-1/+1
bufsize and remainder are unsigned. When negative they are wrapped and caught by the other test. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Pavel Roskin <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: fix printk format specifier for size_t argumentsDavid Kilroy1-3/+3
This addresses the following compile warnings on 64-bit platforms. drivers/net/wireless/orinoco/scan.c: In function 'orinoco_add_hostscan_results': drivers/net/wireless/orinoco/scan.c:194: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' drivers/net/wireless/orinoco/scan.c:211: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' drivers/net/wireless/orinoco/scan.c:211: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: remove WE nickname supportDavid Kilroy1-43/+0
Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: convert giwrange to cfg80211David Kilroy1-114/+1
Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: convert scanning to cfg80211David Kilroy9-744/+378
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 Kilroy5-80/+70
Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: provide generic commit functionDavid Kilroy5-269/+294
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: Handle suspend/restore in core driverDavid Kilroy6-161/+70
Each device does almost exactly the same things on suspend and resume when upping and downing the interface. So move this logic into a common routine. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10airport: store irq in card private structureDavid Kilroy1-12/+12
... instead of relying on the net_device fields. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: move netdev interface creation to main driverDavid Kilroy9-118/+119
With the move to cfg80211 it's nice to keep the hardware operations distinct from the interface, even though we can only support a single interface. This also means the driver resembles other cfg80211 drivers. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: make firmware download less verboseDavid Kilroy1-27/+23
The firmware download code has been in a couple of releases, without any significant issues reported in this code. Convert to use pr_debug, so the messages can be recoverred by defining DEBUG. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: initiate cfg80211 conversionDavid Kilroy7-89/+256
Initialise and register a wiphy. Store the orinoco_private structure in the new wiphy, and use the net_device private area to store the wireless_dev. This results in a change to the way we navigate from a net_device to the driver private orinoco_private, which we encapsulate in the inline function ndev_priv. Most of the remaining calls to netdev_priv are thus replaced by ndev_priv. We can immediately rely on cfg80211 to handle SIOCGIWNAME, so orinoco_ioctl_getname is removed. 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 Kilroy3-6/+6
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: initialise independently of netdevDavid Kilroy9-24/+63
Initialise the orinoco driver before registerring with netdev, which will help when we get to cfg80211... Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: Replace net_device with orinoco_private in driver interfacesDavid Kilroy10-139/+132
Move away from using net_device as the main structure in orinoco function calls. Use orinoco_private instead. This makes more sense when we move to cfg80211, and we get wiphys as well. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-07-10orinoco: firmware helpers should use dev_err and friendsDavid Kilroy1-24/+17
We should be able to call these routines before we register with netdev, so avoid printks using the netdev name. 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 Kilroy3-23/+26
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 Kilroy3-100/+115
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 Kilroy3-216/+219
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-03-16orinoco: firmware: consistently compile out fw cache support if not requestedAndrey Borzenkov4-13/+33
Currently part of support for FW caching is unconditionally compiled in even if it is never used. Consistently remove caching support if not requested by user. Signed-off-by: Andrey Borzenkov <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-27orinoco: prevent accessing memory outside the firmware imageDavid Kilroy3-56/+67
Do this by indicating the end of the appropriate regions of memory. Note that MAX_PDA_SIZE should only apply to the PDA block read from flash/EEPROM, and has been erronously applied to the pdr elements. Remove the macro, and use the actual PDA size passed down by the caller. We also fix up some of the types used, marking as much as possible const, and using void* for the end pointers. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-27orinoco: validate firmware headerDavid Kilroy1-0/+37
Check the Agere firmware headers for validity before attempting to download it. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-25Merge branch 'master' of ↵David S. Miller1-4/+15
master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/wireless/orinoco/orinoco.c
2009-02-23orinoco: do not resgister NULL pm_notifier functionAndrey Borzenkov1-4/+15
With DEBUG_NOTIFIERS it results in [11330.890966] WARNING: at /home/bor/src/linux-git/kernel/notifier.c:88 notifier_call_chain+0x91/0xa0() [11330.890977] Hardware name: PORTEGE 4000 [11330.890983] Invalid notifier called! ... Without DEBUG_NOTIFIERS it most likely crashes on NULL pointer. Signed-off-by: Andrey Borzenkov <[email protected]> Acked-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Storage class should be before const qualifierTobias Klauser1-1/+1
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: hermes doesn't need to be a separate moduleDavid Kilroy2-20/+2
Just compile it into the orinoco module. If we merge USB support, the module can then be split as appropriate. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: hermes_dld does not need to be a moduleDavid Kilroy2-33/+4
Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Move WEXT handlers into a separate fileDavid Kilroy5-2350/+2408
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Move hardware functions into separate fileDavid Kilroy4-583/+635
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Add hardware function to set multicast modeDavid Kilroy1-20/+31
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Use accessor functions for bitrate tablesDavid Kilroy1-59/+81
... when used by the WEXT ioctl functions. This will allow us to separate the card specific stuff from the WEXT code. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Move firmware handling into a separate fileDavid Kilroy4-335/+358
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-13orinoco: Move MIC helpers into new fileDavid Kilroy4-74/+105
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: Move scan helpers to a separate fileDavid Kilroy4-219/+265
No functional change. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: use orinoco_private instead of net_device in scan helperDavid Kilroy1-5/+5
This makes the interface to the scan helpers consistent, so we can split them out. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: Rename orinoco.cDavid Kilroy7-7/+8
So that we can split up the file and still produce a module named orinoco.o. Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: Fix interesting checkpatch errorsDavid Kilroy1-30/+22
ERROR: "foo * bar" should be "foo *bar" ERROR: do not initialise statics to 0 or NULL WARNING: printk() should include KERN_ facility level WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: keep line length below 80 charactersDavid Kilroy1-45/+68
Remove most checkpatch warnings of the type WARNING: line over 80 characters Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: remove unnecessary bracesDavid Kilroy1-11/+7
Remove the following checkpatch warnings WARNING: braces {} are not necessary for any arm of this statement WARNING: braces {} are not necessary for single statement blocks Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: spaces in parenthesised expressionsDavid Kilroy1-55/+55
Remove checkpatch warnings of the following type: ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited before that close parenthesis ')' ERROR: space prohibited after that '!' (ctx:BxW) ERROR: space required before the open parenthesis '(' ERROR: space required before the open brace '{' Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-11orinoco: address leading and trailing whitespaceDavid Kilroy1-53/+53
Remove the following checkpatch errors from orinoco.c ERROR: trailing whitespace ERROR: code indent should use tabs where possible WARNING: suspect code indent for conditional statements Signed-off-by: David Kilroy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-09wireless: replace uses of __constant_{endian}Harvey Harrison2-3/+3
The base versions handle constant folding now. Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-02-09orinoco: checkpatch cleanupAndrey Borzenkov11-119/+143
Fix errors and obvious warnings reported by checkpatch in all files except orinoco.c. Orinoco.c is part of different patch series of Dave. Signed-off-by: Andrey Borzenkov <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-01-29orinoco: trivial cleanup in alloc_orinocodevAndrey Borzenkov1-2/+2
Remove extra space; remove redundant cast Signed-off-by: Andrey Borzenkov <[email protected]> Acked-by: Pavel Roskin <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2009-01-29orinoco: convert to struct net_device_opsAndrey Borzenkov1-8/+12
No functional changes; use new kernel interface for netdev methods. Signed-off-by: Andrey Borzenkov <[email protected]> Acked-by: Pavel Roskin <[email protected]> Signed-off-by: John W. Linville <[email protected]>