lib: crc8: add new library module providing crc8 algorithm

    The brcm80211 driver in staging tree uses a crc8 function. Based on
    feedback from John Linville to move this to lib directory, the linux
    source has been searched. Although there is currently only one other
    kernel driver using this algorithm (ie. drivers/ssb) we are providing
    this as a library function for others to use.

    Cc: linux-kernel@vger.kernel.org
    Cc: linux-wireless@vger.kernel.org
    Cc: Dan Carpenter <error27@gmail.com>
    Cc: George Spelvin <linux@horizon.com>
    Cc: Randy Dunlap <rdunlap@xenotime.net>
    Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
    Reviewed-by: Roland Vossen <rvossen@broadcom.com>
    Reviewed-by: "Franky (Zhenhui) Lin" <frankyl@broadcom.com>
    Signed-off-by: Arend van Spriel <arend@broadcom.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
lib: cordic: add library module providing cordic angle calculation

    The brcm80211 driver in the staging tree has a cordic function to
    determine cosine and sine for a given angle. Feedback received from
    John Linville suggested that these kind of functions should be made
    available to others as a library function in the kernel tree. The
    b43 driver also has a cordic angle calculation implemented.

    Cc: linux-kernel@vger.kernel.org
    Cc: linux-wireless@vger.kernel.org
    Cc: "John W. Linville" <linville@tuxdriver.com>
    Cc: Greg Kroah-Hartman <gregkh@suse.de>
    Cc: Dan Carpenter <error27@gmail.com>
    Cc: Randy Dunlap <rdunlap@xenotime.net>
    Cc: Larry Finger <Larry.Finger@lwfinger.net>
    Reviewed-by: Roland Vossen <rvossen@broadcom.com>
    Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
    Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
    Signed-off-by: Arend van Spriel <arend@broadcom.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
ath9k: show excessive-retry MPDUs in debugfs

    Signed-off-by: Felix Fietkau <nbd@openwrt.org>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
b43: do not use SSB specific flags when calling core reset function

    Luckily the only flag we use when calling core reset is GMODE one.
    Thanks to that we can just switch to single bool and make function calls
    bus generic.

    Tested on my BCM4312 (LP-PHY) and early tested with BCM43224.

    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
bcma: read SPROM and extract MAC from it

    In case of BCMA cards SPROM is located in the ChipCommon core, it is
    not mapped as separated host window. So far we have met only SPROMs rev
    8.
    SPROM layout seems to be the same as for SSB buses, so we decided to
    share SPROM struct and some defines.
    For now we extract MAC address only, this can be improved of course.

    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
b43: add an option to register BROKEN bcma driver

    It does nothing useful yet, so it is matched as BROKEN.
    For now this is just an option for b43, in future we may want to make
    b43 support SSB or BCMA (note: or, not xor).

    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
b43: add BCMA 80211 core specific defines

    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlegacy: remove unreachable code

    return; at the end of the function is unecessary.

    Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlegacy: remove unecessary if statement

    the code always returns ret regardless, so if(ret) check is unecessary.
    Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlegacy: return -EINVAL instead of -1

    Cleanup the code to return -EINVAL instead of -1
    Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlegacy: propagate error return value

    propogate the return value from iwl4965_get_tx_atten_grp instead
    of implicitly returning -EINVAL in the error case.

    Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlegacy: add missing null check

    lq_sta has other null checks in this function.
    assuming they are correct, this additional null check
    should be added too.

    Incorporating suggestion from Gustavo Padovan.

    Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlagn: save the latest smps mode

    When change smps mode due to bt coex, save it

    Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlagn: set smps mode after assoc for 1000 device

    For some timing reason, 1000 device having problem to kick-in to aggregation
    without sending rxon assoc command. This is a W/A until find the real reason

    Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlagn: move all post scan functions in one place

    Both tx power and power save are being done after scan complete, move into
    post_scan function

    Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlagn: direct call to post_scan function

    After driver split, no need to use function "ops" for post_scan.

    Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
iwlagn: call commit_rxon function directly

    No need to go though multiple levels of indirect call to send RXON command.
    Call it directly

    Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>