source: branches/chaos_calmer/package/kernel/mac80211/patches/351-0034-brcmfmac-Add-USB-ID-for-Cisco-Linksys-AE1200.patch @ 49407

Last change on this file since 49407 was 49407, checked in by rmilecki, 12 months ago

mac80211: brcmfmac: backport changes from 2016-09-27

This fixes memory leaks, some possible crashes and bug that could cause
WARNING on every add_key/del_key call. It also replaces WARNING with
a simple message. They may still occur e.g. on station going out of
range and A-MPDU stall in the firmware.

Signed-off-by: Rafał Miłecki <rafal@…>

File size: 2.1 KB
  • drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c

    From bccf3ffc8c6d8e0251a15541bb4d12b423c4f729 Mon Sep 17 00:00:00 2001
    From: Ismael Luceno <ismael@iodev.co.uk>
    Date: Mon, 22 Aug 2016 19:40:07 -0300
    Subject: [PATCH] brcmfmac: Add USB ID for Cisco Linksys AE1200
    
    The AE1200 comes with different revisions of the BCM43235 chipset,
    but all have the same USB ID. Only revision 3 can be supported.
    
    Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    ---
     drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c        | 4 ++++
     drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h | 2 ++
     2 files changed, 6 insertions(+)
    
    a b static int brcmf_usb_reset_resume(struct 
    14561456#define BRCMF_USB_DEVICE(dev_id)        \ 
    14571457        { USB_DEVICE(BRCM_USB_VENDOR_ID_BROADCOM, dev_id) } 
    14581458 
     1459#define LINKSYS_USB_DEVICE(dev_id)      \ 
     1460        { USB_DEVICE(BRCM_USB_VENDOR_ID_LINKSYS, dev_id) } 
     1461 
    14591462static struct usb_device_id brcmf_usb_devid_table[] = { 
    14601463        BRCMF_USB_DEVICE(BRCM_USB_43143_DEVICE_ID), 
    14611464        BRCMF_USB_DEVICE(BRCM_USB_43236_DEVICE_ID), 
    14621465        BRCMF_USB_DEVICE(BRCM_USB_43242_DEVICE_ID), 
    14631466        BRCMF_USB_DEVICE(BRCM_USB_43569_DEVICE_ID), 
     1467        LINKSYS_USB_DEVICE(BRCM_USB_43235_LINKSYS_DEVICE_ID), 
    14641468        { USB_DEVICE(BRCM_USB_VENDOR_ID_LG, BRCM_USB_43242_LG_DEVICE_ID) }, 
    14651469        /* special entry for device with firmware loaded and running */ 
    14661470        BRCMF_USB_DEVICE(BRCM_USB_BCMFW_DEVICE_ID), 
  • drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h

    a b  
    2222 
    2323#define BRCM_USB_VENDOR_ID_BROADCOM     0x0a5c 
    2424#define BRCM_USB_VENDOR_ID_LG           0x043e 
     25#define BRCM_USB_VENDOR_ID_LINKSYS      0x13b1 
    2526#define BRCM_PCIE_VENDOR_ID_BROADCOM    PCI_VENDOR_ID_BROADCOM 
    2627 
    2728/* Chipcommon Core Chip IDs */ 
     
    5657 
    5758/* USB Device IDs */ 
    5859#define BRCM_USB_43143_DEVICE_ID        0xbd1e 
     60#define BRCM_USB_43235_LINKSYS_DEVICE_ID        0x0039 
    5961#define BRCM_USB_43236_DEVICE_ID        0xbd17 
    6062#define BRCM_USB_43242_DEVICE_ID        0xbd1f 
    6163#define BRCM_USB_43242_LG_DEVICE_ID     0x3101 
Note: See TracBrowser for help on using the repository browser.