summaryrefslogtreecommitdiffstats
path: root/drivers/staging/brcm80211/brcmfmac
Commit message (Collapse)AuthorAgeFilesLines
* staging: Final semaphore cleanupThomas Gleixner2010-10-301-2/+2
| | | | | | | | | | Fixup the last remaining users of DECLARE_MUTEX and init_MUTEX. Scripted conversion, resulting code is binary equivalent. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> LKML-Reference: <20100907125057.278833764@linutronix.de>
* staging: brcm80211: brcmfmac: Removed codeversion from firmware filenames.Henry Ptasinski2010-10-211-2/+2
| | | | | | | | | | | | The basename-apiversion-codeversion construction for firmware filenames is not used by most other firmware files, adds complexity, and is not providing any value. Rename the firmware files using just basename-apiversion. Users of the brcmfmac driver will need to update the linux-firmware package to get the renamed files, or manually rename their installed firmware files. 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-4/+0
| | | | | | | | | 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-30/+23
| | | | | | | | | | | | 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-216-39/+36
| | | | | | | | | | 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: brcmfmac: add debugfs, display wi-fi statisticsnohee ko2010-10-192-0/+44
| | | | | | | | | | | Add debugfs to display wi-fi profile/statistics. Initially some profile parameters such as dtim_period, beacon_int will be seen at /sys/kernel/debug/ieee80211/phy#/netdev:eth#. This will provide users with current connection status. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: brcmfmac: add profile, beacon_int, dtim_periodnohee ko2010-10-192-2/+44
| | | | | | | | Add profile, beacon_int & dtim_period. This profile can be seen through debugfs. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: brcmfmac: enable passive, active scan selectionnohee ko2010-10-192-27/+37
| | | | | | | | | | Enable passive, active scan selection. Previously it did active scan and reported probe response result regardless of active_scan flag Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: brcmfmac: remove unnecessary cflags, WL_ISCAN_DISABLED & ↵nohee ko2010-10-191-9/+1
| | | | | | | | | | | WL_ROAM_DISABLED Remove unnecessary cflags, WL_ISCAN_DISABLED and WL_ROAM_DISABLED. Iscan is ON and Roam by FW is OFF by default. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: replace MFREE with kfreemike.rapoport@gmail.com2010-10-148-40/+40
| | | | | 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-148-41/+35
| | | | | 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-12/+4
| | | | | | | 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-145-79/+1
| | | | | | | | 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: remove OSL_DELAYmike.rapoport@gmail.com2010-10-145-6/+6
| | | | | | | 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: brcmfmac: bug fix - scan result reportnohee ko2010-10-141-5/+11
| | | | | | | | | Scan result was reported with some duplicated information. Those were about SSID/ rate. With this patch, the duplication can be erased. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: brcmfmac: replace KILL_PROC with send_sig()nohee ko2010-10-143-7/+6
| | | | | | | logic optimization : replace KILL_PROC with send_sig() Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: bug fix- rmmod hang problemnohee ko2010-10-123-1/+23
| | | | | | | | | | Bug fix - rmmod hang problem. Can keep both of kthread & down_interruptible. And in the meantime, can terminate the threads properly during rmmod process. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: remove FALSE #defineGreg Kroah-Hartman2010-10-1210-215/+215
| | | | | | | | | | 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-205/+205
| | | | | | | | | | 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>
* staging: brcm80211: remove useless bcm_ether_ntoa()Andy Shevchenko2010-10-124-48/+18
| | | | | | | | | | | | Since we have '%pM' modifier in the kernel's *printf() we don't need to convert address to the string beforehand. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Nohee Ko <noheek@broadcom.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Cc: linux-wireless@vger.kernel.org Cc: devel@driverdev.osuosl.org Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: fix various checkpatch errors.Jason Cooper2010-10-123-7/+5
| | | | | Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: s/unsigned char/size_t/ for min_t()Jason Cooper2010-10-111-4/+4
| | | | | | | Avoid potential truncation. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove custom string library againAndy Shevchenko2010-10-112-14/+14
| | | | | | | | | | | | | | There was a clean up commit for softmac driver. Do the same for fullmac implementation. Here: - strtoul and bcm_strtoul are changed to simple_strtoul - bcmstrtok -> strsep All unused functions are deleted. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: clean up custom ctype library againAndy Shevchenko2010-10-111-1/+0
| | | | | | | | The similar cleanup was done before for softmac implementation. But the fullmac driver brings this back. Remove it again. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: fix 'comparison..cast' compiler warnings.Jason Cooper2010-10-102-9/+12
| | | | | | | Use min_t() macro instead of min(). Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove BLOCKABLE so no one uses it.Jason Cooper2010-10-101-2/+0
| | | | | | | BLOCKABLE() doesn't do what it's supposed to. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove kernel_thread() for wl_iscan_thread and ↵Jason Cooper2010-10-102-24/+24
| | | | | | | | | | | | wl_event_thread. Replace kernel_thread() with kthread_run(). Replace pid with tsk, and exited with kthread_stop()/kthread_should_stop(). event_tsk, and tsk are NULL when their respective threads are not running. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove kernel_thread() for _iscan_sysioc_thread.Jason Cooper2010-10-101-23/+20
| | | | | | | | | | Replace kernel_thread() with kthread_run, kthread_stop() and kthread_should_stop(). Remove sysioc_pid, sysioc_exit, and DAEMONIZE. sysioc_tsk is NULL when not running. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove kernel_thread() for _dhd_sysioc_thread.Jason Cooper2010-10-101-24/+20
| | | | | | | | | | | Replaced kernel_thread() with kthread_run(), kthread_stop(), and kthread_should_stop(). Also removed all references to sysioc_pid and sysioc_exit. DAEMONIZE removed because not used in dhd_linux.c. sysioc_tsk is NULL when not running. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove kernel_thread() for dhd_dpc_thread.Jason Cooper2010-10-101-14/+17
| | | | | | | | | | use kthread_run(), kthread_stop(), and kthread_should_stop(). Removes dpc_pid, dpc_exited, and the call to DAEMONIZE. dpc_tsk is NULL when not running. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove kernel_thread() for dhd_watchdog_thread.Jason Cooper2010-10-101-12/+17
| | | | | | | | | | | Replaced kernel_thread() with kthread_run(). Used kthread_should_stop() in place of watchdog_exited completion. Replaced watchdog_pid with struct task_struct. watchdog_tsk is NULL when the task is not running. Signed-off-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove unnecessary cflag, LINUXnohee ko2010-10-092-10/+0
| | | | | | | remove unnecessary cflag, LINUX Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove unnecessary cflag, CONFIG_CFG80211nohee ko2010-10-093-36/+1
| | | | | | | remove unnecessary cflag, CONFIG_CFG80211 Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove unnecessary cflag, BCMWPA2nohee ko2010-10-092-24/+0
| | | | | | | | remove unnecessary cflag, BCMWPA2. BCMDRIVER is already not used. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: remove duplicated file, bcmutils.cnohee ko2010-10-094-1818/+5
| | | | | | | | | | Remove duplicated file, bcmutils.c under brcm80211/brcmfmac. brcm80211/util/bcmutils.c will be shared between softmac & fullmac. Makefile, and some other files are also modified accordingly Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: make interface name buffer smallerDan Carpenter2010-10-091-3/+2
| | | | | | | | | | | | | | | In the original code the interface name was IFNAMSIZ + 1, but that caused problems in dhd_ifname2idx() which does: strncmp(dhd->iflist[i]->name, name, IFNAMSIZ) The wl_event_msg_t struct can only store 16 character names as well. And thirdly there is a potential buffer overflow in dhd_op_if() because if->net->name is IFNAMSIZ and we do: strcpy(ifp->net->name, ifp->name); Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: brcm80211: bug fix- dual band problemnohee ko2010-10-081-19/+89
| | | | | | | | Bug fix for dual band problem. In particular it had an issue to connect to 5G band AP. Signed-off-by: Nohee Ko <noheek@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: brcm80211: brcmfmac: fix some comparison warningsGreg Kroah-Hartman2010-10-082-7/+7
| | | | | | | | | | Use min_t() instead of min() in some places to make the comparison explicit and resolve some compiler warnings. 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 ROUNDUP macroGreg Kroah-Hartman2010-10-081-15/+15
| | | | | | | | | And use the kernel provided 'roundup' instead. 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 ISALIGNED macroGreg Kroah-Hartman2010-10-082-3/+3
| | | | | | | | | And use the kernel provided IS_ALIGNED one instead. 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 ARRAYSIZE macroGreg Kroah-Hartman2010-10-083-5/+5
| | | | | | | | | Use the real 'ARRAY_SIZE' definition instead. 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 OFFSETOF macroGreg Kroah-Hartman2010-10-084-9/+9
| | | | | | | | | Use the real 'offsetof' definition instead. 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 broken MAX() implementationGreg Kroah-Hartman2010-10-081-1/+1
| | | | | | | | | | | | | Use the kernel-provided version, this one is broken. Note, there are more compiler warnings now, that's due to different types being compared, which shows how the original macro was wrong in at least one way. They need to be fixed up. 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 broken MIN() implementationGreg Kroah-Hartman2010-10-085-25/+25
| | | | | | | | | | | | | Use the kernel-provided version, this one is broken. Note, there are more compiler warnings now, that's due to different types being compared, which shows how the original macro was wrong in at least one way. They need to be fixed up. 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: s/int32/s32/Greg Kroah-Hartman2010-10-089-393/+393
| | | | | | | | | Use the kernel types, don't invent your own. 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: s/uint32/u32/Greg Kroah-Hartman2010-10-0813-258/+258
| | | | | | | | | Use the kernel types, don't invent your own. 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: s/int16/s16/Greg Kroah-Hartman2010-10-071-1/+1
| | | | | | | | | Use the kernel types, don't invent your own. 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: s/uint16/u16/Greg Kroah-Hartman2010-10-0711-92/+92
| | | | | | | | | Use the kernel types, don't invent your own. 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: wl_cfg80211.c: fix compiler warningsGreg Kroah-Hartman2010-10-071-3/+3
| | | | | | | | | size_t should be '%zd' in a printf, not '%d' 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 unneeded pci macrosGreg Kroah-Hartman2010-10-071-1/+1
| | | | | | | | | These wrapper macros aren't needed, remove them. 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>
OpenPOWER on IntegriCloud