summaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/util
Commit message (Collapse)AuthorAgeFilesLines
* staging: brcm80211: Convert ETHER_ADDR_LEN to ETH_ALENJoe Perches2010-12-161-1/+1
| | | | | | | | | Add an #include of <linux/if_ether.h> to include/proto/ethernet.h Convert ETHER_ADDR_LEN, remove the #define for ETHER_ADDR_LEN. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Convert ETHER_IS<FOO> to is_<foo>_ether_addrJoe Perches2010-12-161-2/+2
| | | | | | | | | | | Use the normal kernel calls and remove the #defines for ETHER_IS_BCAST and ETHER_IS_NULLADDR. Add #include for etherdevice.h where necessary. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Convert ETHER_IS_MULTI to is_multicast_ether_addrJoe Perches2010-12-161-5/+6
| | | | | | | | | | Use the standard kernel function. Change callers to add .octet to addressing to avoid warnings. Add #include <linux/etherdevice.h> where necessary. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replaced typedef hnddma_t by struct hnddma_pubRoland Vossen2010-12-081-5/+3Star
| | | | | | | Code cleanup. Signed-off-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove macro usage for sk_buff releaseArend van Spriel2010-12-073-16/+10Star
| | | | | | | | | | | | PKTFREE macro calls osl_pktfree. This function has been renamed to pkt_buf_free_skb as it comprises of functionality additional to dev_kfree_skb(_any) function and to get rid of the OSL concept in this driver. Reviewed-by: Brett Rudley <brudley@broadcom.com> Reviewed-by: Dowan Kim <dowan@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove macro usage for sk_buff allocationArend van Spriel2010-12-072-3/+3
| | | | | | | | | | | PKTGET macro calls osl_pktget. This function has been renamed to pkt_buf_get_skb as it comprises of functionality additional to dev_alloc_skb function and to get rid of the OSL concept in this driver. Reviewed-by: Brett Rudley <brudley@broadcom.com> Reviewed-by: Dowan Kim <dowan@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: move dma specific macros from osl to dma codeBrett Rudley2010-12-072-5/+13
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Move osl_pub into oslBrett Rudley2010-12-072-5/+5
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove redundant CHIPREV macroArend van Spriel2010-12-023-9/+9
| | | | | | | | | The CHIPREV macro simply expands to the macro argument so it is redundant and as such removed. Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove redundant CHIPID macroArend van Spriel2010-12-025-59/+59
| | | | | | | | | The CHIPID macro simply expands to the macro argument so it is redundant and as such removed. Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove redundant CHIPTYPE macroArend van Spriel2010-12-021-13/+13
| | | | | | | | | The CHIPTYPE macro simply expands to the macro argument so it is redundant and as such removed. Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211 needs lots of delay.hRandy Dunlap2010-12-015-0/+5
| | | | | | | | | | | | | | | Fix lots of errors like: drivers/staging/brcm80211/phy/wlc_phy_n.c:17613: error: implicit declaration of function 'mdelay' drivers/staging/brcm80211/util/nicpci.c:246: error: implicit declaration of function 'udelay' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Dowan Kim <dowan@broadcom.com> Cc: Roland Vossen <rvossen@broadcom.com> Cc: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: bcmp => memcmpBrett Rudley2010-12-013-3/+3
| | | | | | | s/bcmp/memcmp/ Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: bzero => memsetBrett Rudley2010-12-016-11/+14
| | | | | | | s/bzero/memset/g Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove unused PKTFREESETCBBrett Rudley2010-12-011-3/+0Star
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove BUSTYPE macroBrett Rudley2010-11-296-52/+44Star
| | | | | | | BUSTYPE isn't used in this configuration. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: removed packet macros for accessing sk_buff fieldsArend van Spriel2010-11-292-39/+39
| | | | | | | | | | With the packet storage type changed from void pointer to struct sk_buff pointer there is no need for macros for accessing these fields through casting. These can now be accessed directly. Reviewed-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: change packet buffer type to native struct sk_buffArend van Spriel2010-11-292-23/+27
| | | | | | | | | | The packet queues now store struct sk_buff pointer and subsequently all driver code handling packets now use struct sk_buff as package storage type. Next step will be getting rid of packet macros. Reviewed-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: OSL shrink: Remove OSL_PCI_READ/WRITE_CONFIGBrett Rudley2010-11-293-50/+39Star
| | | | | | | Replace OSL layer PCI READ/WRITE macros with native calls. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: stragglers not handled by unifdefBrett Rudley2010-11-201-49/+0Star
| | | | | | | Part of BMAC removal. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replaced PKTSETLEN macro by native __skb_trim callArend van Spriel2010-11-201-2/+2
| | | | | | | | | | - removed PKTSETLEN macro and used __skb_trim call instead. - removed unused macros PKTSETPOOL and PKTPOOL Reviewed-by: Henry Ptasinski <henryp@broadcom.com> Reviewed-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replace PKTPUSH and PKTPULL macros with native skbuff callsArend van Spriel2010-11-201-1/+1
| | | | | | | | | | Replacing PKTPUSH by skb_push() call and PKTPULL by skb_pull() call to make it obvious what the operation is doing with the packet. Reviewed-by: Henry Ptasinski <henryp@broadcom.com> Reviewed-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: nicpci.c: replace osl based PCI calls with native linux ↵Brett Rudley2010-11-171-63/+33Star
| | | | | | | | | | | pci calls Get rid of the private PCI access routines and replace with standard calls from linux/pci.h in nicpci.c (The private versions are still used in siutils.c... for now) Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: s/osl_t/struct osl_info/gBrett Rudley2010-11-179-128/+139
| | | | | | | | | | Do the substitution (and then fix all the dang lines that were pushed past 80 columns.) Some of the touched lines triggered checkpatch warnings for completely unrelated reasons that were already there. Those will have to be addressed later. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: completely remove osl_pubinfo_t typedefBrett Rudley2010-11-171-12/+12
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: expose osl contents and start combining osl and pub_osl.Brett Rudley2010-11-171-7/+0Star
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: get rid of last bit of pci configspace workaround.Brett Rudley2010-11-161-2/+0Star
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: simplify pci_config_read/write osl routines.Brett Rudley2010-11-161-42/+5Star
| | | | | | | Start simplifying osl with goal of purging it entirely. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove pkttag from oslBrett Rudley2010-11-101-9/+1Star
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove 'failed' field from oshBrett Rudley2010-11-101-2/+0Star
| | | | | Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove OSL_ERROR entry pointBrett Rudley2010-11-101-73/+0Star
| | | | | | | | Get rid of generic OSL_ERROR and error code translation to the only place that needs it: dhd. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove abstraction layer for dma alignmentBrett Rudley2010-11-101-6/+1Star
| | | | | | | Directly align buffers instead of abstracting it. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Move #include from bcmutils.h out to .c filesBrett Rudley2010-11-101-0/+1
| | | | | | | Part of effort to move #includes out of .h files and unwind the include mess. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Purge linuxver.h and redistribute #includes as requiredBrett Rudley2010-11-1011-10/+35
| | | | | | | Linuxver.h only included other .h files. Delete it and move #includes to .c's as needed. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Remove unnecessary includes from bcmutils.cHenry Ptasinski2010-10-211-2/+0Star
| | | | | | | Removed includ of bcmip.h and vlan.h, as they're no longer needed. Signed-off-by: Henry Ptasinski <henryp@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Removed unnecessary pktsetprio() function.Henry Ptasinski2010-10-211-66/+0Star
| | | | | | | | | This function is completely unnecessary, as packet classification is done higher up in the stack. As used, the function actually mis-classifies frames in some cases since it overwrites the classification done by the stack. Signed-off-by: Henry Ptasinski <henryp@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: remove typedefs.hGreg Kroah-Hartman2010-10-2113-37/+23Star
| | | | | | | | | | | | It's not needed anymore, so remove it and clean up the .h inclusion mess a bit to get everything to build properly again. Wow, this needs some unwinding... Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: remove uintptr typedef usageGreg Kroah-Hartman2010-10-214-15/+15
| | | | | | | | | | Use a unsigned long, that is the proper type for this type of thing on Linux. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove unrefrenced malloced fieldmike.rapoport@gmail.com2010-10-141-2/+0Star
| | | | | | | from 'struct osl_info' structure Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replace MFREE with kfreemike.rapoport@gmail.com2010-10-147-30/+19Star
| | | | | Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replace MALLOC() with k[zm]allocmike.rapoport@gmail.com2010-10-147-50/+19Star
| | | | | Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove osl_malloced()/MALLOCED()mike.rapoport@gmail.com2010-10-144-14/+5Star
| | | | | | | because there are other means to track memory leaks in kernel Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove DHD_USE_STATIC_BUFmike.rapoport@gmail.com2010-10-141-180/+0Star
| | | | | | | | The DHD_USE_STATIC_BUF cannot be enabled in the build configuration, remove it. Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: fix up compiler warnings I createdGreg Kroah-Hartman2010-10-141-3/+3
| | | | | | | | | | I messed up on some of the uintptr conversions, this fixes them up properly. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove OSL_DELAYmike.rapoport@gmail.com2010-10-148-43/+32Star
| | | | | | | and use udelay and mdelay instead Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: Purge unused bcmwpa.[ch]Brett Rudley2010-10-141-56/+0Star
| | | | | | | Move two macros into wlc_mac80211.h and purge the rest. Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: remove sbpciregs_t typedefGreg Kroah-Hartman2010-10-122-7/+6Star
| | | | | | | | | don't use a typedef, use a 'struct'. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: util: remove unneeded use of uintptrGreg Kroah-Hartman2010-10-121-3/+3
| | | | | | | | | | uintptr shouldn't be used when you are just casting to a pointer anyway, so remove it from these usages. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: remove FALSE #defineGreg Kroah-Hartman2010-10-1211-59/+59
| | | | | | | | | | use the kernel provided 'false' value instead, especially as we are using a 'bool' for these variables. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: remove TRUE #defineGreg Kroah-Hartman2010-10-1211-70/+70
| | | | | | | | | | use the kernel provided 'true' value instead, especially as we are using a 'bool' for these variables. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>