brcm80211: resolve brcmsmac issues and brcmfmac usb support
PATCH 5/15 brcm80211: smac: remove smatch warnings from brcmsmac code
In reply to Arend van SprielThe patch fixes following smatch warnings:
main.c +2902 brcms_b_read_objmem(11) info: ignoring unreachable code. mac80211_if.c +1146 brcms_suspend(8) error: we previously assumed 'wl' could be null (see line 1145)srom.c +641 _initvars_srom_pci(16) error: potential null dereference 'entry'. (kzalloc returns null)
--- .../net/wireless/brcm80211/brcmsmac/mac80211_if.c | 4 ++-- drivers/net/wireless/brcm80211/brcmsmac/main.c | 1 - drivers/net/wireless/brcm80211/brcmsmac/srom.c | 14 ++++++++++++-- 3 files changed, 14 insertions(+), 5 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +2 -2
@@ -1136,8 +1136,8 @@ static int brcms_suspend(struct bcma_device *pdev) hw =bcma_get_drvdata (pdev); wl = hw->priv;if (!wl) { -wiphy_err (wl->wiphy, -"brcms_suspend: bcma_get_drvdata failed\n" ); +pr_err ("%s: %s: no driver private struct!\n" ,KBUILD_MODNAME , + __func__);return -ENODEV ; }
drivers/net/wireless/brcm80211/brcmsmac/main.c +0 -1
@@ -2901,7 +2901,6 @@ brcms_b_read_objmem(struct brcms_hardware *wlc_hw, uint offset, u32 sel) objoff +=2 ;return bcma_read16 (core, objoff); -; } static void
drivers/net/wireless/brcm80211/brcmsmac/srom.c +12 -2
@@ -621,7 +621,7 @@ static inline void cpu_to_le16_buf(u16 *buf, uint nwords)/* * convert binary srom data into linked list of srom variable items. */ -static void +static int _initvars_srom_pci (u8 sromrev,u16 *srom,struct list_head *var_list) {struct brcms_srom_list_head *entry;
@@ -638,6 +638,9 @@ _initvars_srom_pci(u8 sromrev, u16 *srom, struct list_head *var_list)/* first store the srom revision */ entry =kzalloc (sizeof (struct brcms_srom_list_head ),GFP_KERNEL ); +if (!entry) +return -ENOMEM ; + entry->varid =BRCMS_SROM_REV ; entry->var_type =BRCMS_SROM_UNUMBER ; entry->uval = sromrev;
@@ -715,6 +718,8 @@ _initvars_srom_pci(u8 sromrev, u16 *srom, struct list_head *var_list) entry =kzalloc (sizeof (struct brcms_srom_list_head ) + extra_space,GFP_KERNEL ); +if (!entry) +return -ENOMEM ; entry->varid = id; entry->var_type = type;if (flags &SRFL_ETHADDR ) {
@@ -754,6 +759,8 @@ _initvars_srom_pci(u8 sromrev, u16 *srom, struct list_head *var_list) entry =kzalloc (sizeof (struct brcms_srom_list_head ),GFP_KERNEL ); +if (!entry) +return -ENOMEM ; entry->varid = srv->varid+p; entry->var_type =BRCMS_SROM_UNUMBER ; entry->uval = val;
@@ -761,6 +768,7 @@ _initvars_srom_pci(u8 sromrev, u16 *srom, struct list_head *var_list) } pb += psz; } +return 0 ; }/*
@@ -906,7 +914,9 @@ int srom_var_init(struct si_pub *sih)INIT_LIST_HEAD (&sii->var_list);/* parse SROM into name=value pairs. */ -_initvars_srom_pci (sromrev, srom, &sii->var_list); + err =_initvars_srom_pci (sromrev, srom, &sii->var_list); +if (err) +srom_free_vars (sih); } errout:
Signature · 1 line
1.7.5.4
PATCH 9/15 brcm80211: fmac: move module entry points to dhd_linux.c
In reply to Arend van SprielThe module_init/exit functions are moved to dhd_linux.c to prepare for supporting multiple host interface types.
--- .../net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 7 +---- drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h | 6 +++++ .../net/wireless/brcm80211/brcmfmac/dhd_linux.c | 24 ++++++++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c +2 -5
@@ -597,14 +597,14 @@ static struct sdio_driver brcmf_sdmmc_driver = {#endif /* CONFIG_PM_SLEEP */ }; -static void __exit brcmf_sdio_exit(void) +void brcmf_sdio_exit (void ) {brcmf_dbg (TRACE ,"Enter\n" );sdio_unregister_driver (&brcmf_sdmmc_driver); } -static int __init brcmf_sdio_init (void ) +int brcmf_sdio_init (void ) {int ret;
@@ -617,6 +617,3 @@ static int __init brcmf_sdio_init(void)return ret; } - -module_init (brcmf_sdio_init); -module_exit (brcmf_sdio_exit);
drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h +6 -0
@@ -105,4 +105,10 @@ extern int brcmf_bus_start(struct device *dev);extern int brcmf_add_if (struct device *dev,int ifidx,char *name,u8 *mac_addr); + +#ifdef CONFIG_BRCMFMAC_SDIO +extern void brcmf_sdio_exit (void ); +extern int brcmf_sdio_init (void ); +#endif +#endif /* _BRCMF_BUS_H_ */
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +24 -0
@@ -1183,3 +1183,27 @@ exit:return ret; }#endif /* DEBUG */ + +static int __init brcmfmac_init (void ) +{ +int ret =0 ; + +#ifdef CONFIG_BRCMFMAC_SDIO + ret =brcmf_sdio_init (); +if (ret) + goto fail; +#endif + +fail: +return ret; +} + +static void __exit brcmfmac_exit(void) +{ +#ifdef CONFIG_BRCMFMAC_SDIO +brcmf_sdio_exit (); +#endif +} + +module_init (brcmfmac_init); +module_exit (brcmfmac_exit);
Signature · 1 line
1.7.5.4
PATCH 10/15 brcm80211: fmac: only return success in brcmf_sdbrcm_bus_init() when true
In reply to Arend van SprielThe function brcmf_sdbrcm_bus_init() always returned success except for firmware download failure. However, also when enabling SDIO function 2 is failing the function should return failure. This patch fixes that.
--- drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +3 -4
@@ -3467,13 +3467,12 @@ static int brcmf_sdbrcm_bus_init(struct device *dev)/* Set bus state according to enable result */ bus_if->state =BRCMF_BUS_DATA ; - } - -else { + }else {/* Disable F2 again */ enable =SDIO_FUNC_ENABLE_1 ;brcmf_sdcard_cfg_write (bus->sdiodev,SDIO_FUNC_0 , SDIO_CCCR_IOEx, enable,NULL ); + ret = -ENODEV ; }/* Restore previous clock setting */
@@ -3481,7 +3480,7 @@ static int brcmf_sdbrcm_bus_init(struct device *dev) SBSDIO_FUNC1_CHIPCLKCSR, saveclk, &err);/* If we didn't come up, turn off backplane clock */ -if (bus_if->state !=BRCMF_BUS_DATA ) +if (!ret)brcmf_sdbrcm_clkctl (bus,CLK_NONE , false); exit:
Signature · 1 line
1.7.5.4
PATCH 15/15 brcm80211: fmac: make sdio firmware filename specific
In reply to Arend van SprielThe sdio driver part uses firmware name brcmfmac.bin. With addition of usb this name is too generic. This patch renames the filename to brcmfmac-sdio.bin.
--- drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +6 -6
@@ -309,10 +309,10 @@ struct rte_console {/* Flags for SDH calls */ #define F2SYNC (SDIO_REQ_4BYTE | SDIO_REQ_FIXED) -#define BRCMFMAC_FW_NAME "brcm/brcmfmac.bin" -#define BRCMFMAC_NV_NAME "brcm/brcmfmac.txt" -MODULE_FIRMWARE (BRCMFMAC_FW_NAME ); -MODULE_FIRMWARE (BRCMFMAC_NV_NAME ); +#define BRCMF_SDIO_FW_NAME "brcm/brcmfmac-sdio.bin" +#define BRCMF_SDIO_NV_NAME "brcm/brcmfmac-sdio.txt" +MODULE_FIRMWARE (BRCMF_SDIO_FW_NAME ); +MODULE_FIRMWARE (BRCMF_SDIO_NV_NAME );#define BRCMF_IDLE_IMMEDIATE (-1)/* Enter idle immediately */ #define BRCMF_IDLE_ACTIVE 0/* Do not request any SD clock change
@@ -3202,7 +3202,7 @@ static int brcmf_sdbrcm_download_code_file(struct brcmf_sdio *bus)brcmf_dbg (INFO ,"Enter\n" ); - ret =request_firmware (&bus->firmware,BRCMFMAC_FW_NAME , + ret =request_firmware (&bus->firmware,BRCMF_SDIO_FW_NAME , &bus->sdiodev->func[2 ]->dev);if (ret) {brcmf_dbg (ERROR ,"Fail to request firmware %d\n" , ret);
@@ -3299,7 +3299,7 @@ static int brcmf_sdbrcm_download_nvram(struct brcmf_sdio *bus)char *bufp;int ret; - ret =request_firmware (&bus->firmware,BRCMFMAC_NV_NAME , + ret =request_firmware (&bus->firmware,BRCMF_SDIO_NV_NAME , &bus->sdiodev->func[2 ]->dev);if (ret) {brcmf_dbg (ERROR ,"Fail to request nvram %d\n" , ret);
Signature · 1 line
1.7.5.4
cover brcm80211: resolve brcmsmac issues and brcmfmac usb support
This patch series contains patches for a couple of issue in brcmsmac. The A-MPDU endless retry fix is a long standing issue that exists in previous kernels. So it should go to 3.3 kernel.
For the brcmfmac driver support has been added for USB chipsets. Firmware has been submitted for bcm43235, bcm43236, and bcm43238 chipsets.
Arend van Spriel (14):
brcm80211: update the maintainers listed for brcm80211 drivers
brcm80211: smac: fix unintended fallthru in wlc_phy_radio_init_2057()
brcm80211: smac: remove redundant assignments from
txpwrctrl_pwr_setup_nphy
brcm80211: smac: fix endless retry of A-MPDU transmissions
brcm80211: smac: remove smatch warnings from brcmsmac code
brcm80211: fmac: resolve smatch issues in brcmfmac code
brcm80211: fmac: use specific types in struct brcmf_bus
brcm80211: fmac: move module entry points to dhd_linux.c
brcm80211: fmac: only return success in brcmf_sdbrcm_bus_init() when
true
brcm80211: fmac: update bus state in common driver part
brcm80211: fmac: change allocation flag in brcmf_enq_event() function
brcm80211: fmac: use spinlock calls saving irq flags in
brcmf_enq_event()
brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
brcm80211: fmac: make sdio firmware filename specific
Franky Lin (1):
brcm80211: fmac: make sure cancel_work_sync only called after
INIT_WORK
MAINTAINERS | 1 - drivers/net/wireless/brcm80211/Kconfig | 17 +- drivers/net/wireless/brcm80211/brcmfmac/Makefile | 6 +- .../net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 14 +- drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h | 17 +- .../net/wireless/brcm80211/brcmfmac/dhd_linux.c | 59 +- drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 32 +- drivers/net/wireless/brcm80211/brcmfmac/usb.c | 1623 ++++++++++++++++++++ drivers/net/wireless/brcm80211/brcmfmac/usb.h | 84 + drivers/net/wireless/brcm80211/brcmfmac/usb_rdl.h | 75 + .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 13 +- drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 6 +- .../net/wireless/brcm80211/brcmsmac/mac80211_if.c | 4 +- drivers/net/wireless/brcm80211/brcmsmac/main.c | 1 - .../net/wireless/brcm80211/brcmsmac/phy/phy_n.c | 28 +- drivers/net/wireless/brcm80211/brcmsmac/srom.c | 14 +- 16 files changed, 1905 insertions(+), 89 deletions(-) create mode 100644 drivers/net/wireless/brcm80211/brcmfmac/usb.c create mode 100644 drivers/net/wireless/brcm80211/brcmfmac/usb.h create mode 100644 drivers/net/wireless/brcm80211/brcmfmac/usb_rdl.h
Signature · 1 line
1.7.5.4
PATCH 1/15 brcm80211: update the maintainers listed for brcm80211 drivers
Henry Ptasinski is not working on the brcm80211 driver so taking his name/email out of the MAINTAINERS file.
--- MAINTAINERS | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
MAINTAINERS +0 -1
@@ -1575,7 +1575,6 @@ F: drivers/net/ethernet/broadcom/tg3.* BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER M: Brett Rudley <[email protected]> -M: Henry Ptasinski <[email protected]> M: Roland Vossen <[email protected]> M: Arend van Spriel <[email protected]> M: Franky (Zhenhui) Lin <[email protected]>
Signature · 1 line
1.7.5.4
PATCH 2/15 brcm80211: smac: fix unintended fallthru in wlc_phy_radio_init_2057()
In reply to Arend van SprielThe radio initialization for 2057 rev 5 was using the incorrect register table for the initialization. This patch fixes that.
--- .../net/wireless/brcm80211/brcmsmac/phy/phy_n.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c +3 -4
@@ -19989,12 +19989,11 @@ static void wlc_phy_radio_init_2057(struct brcms_phy *pi)switch (pi->pubpi.radiorev) {case 5 : -if (pi->pubpi.radiover ==0x0 ) +if (NREV_IS (pi->pubpi.phy_rev,8 )) regs_2057_ptr = regs_2057_rev5; -else if (pi->pubpi.radiover ==0x1 ) +else if (NREV_IS (pi->pubpi.phy_rev,9 )) regs_2057_ptr = regs_2057_rev5v1; -else -break ; +break ;case 7 :
Signature · 1 line
1.7.5.4
PATCH 3/15 brcm80211: smac: remove redundant assignments from txpwrctrl_pwr_setup_nphy
In reply to Arend van SprielThe function wlc_phy_txpwrctrl_pwr_setup_nphy() does assign a local variable target_pwr_qtrdbm in several code paths, but in the end all code paths are coming to an assignment of that variable which does override all previous. So those early and redundant assignments have been removed.
--- .../net/wireless/brcm80211/brcmsmac/phy/phy_n.c | 21 +------------------- 1 files changed, 1 insertions(+), 20 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c +1 -20
@@ -17824,8 +17824,6 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi)if (pi->sh->sromrev <4 ) { idle_tssi[0 ] = pi->nphy_pwrctrl_info[0 ].idle_tssi_2g; idle_tssi[1 ] = pi->nphy_pwrctrl_info[1 ].idle_tssi_2g; - target_pwr_qtrdbm[0 ] =13 *4 ; - target_pwr_qtrdbm[1 ] =13 *4 ; a1[0 ] =-424 ; a1[1 ] =-424 ; b0[0 ] =5612 ;
@@ -17839,10 +17837,6 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi)case WL_CHAN_FREQ_RANGE_2G : idle_tssi[0 ] = pi->nphy_pwrctrl_info[0 ].idle_tssi_2g; idle_tssi[1 ] = pi->nphy_pwrctrl_info[1 ].idle_tssi_2g; - target_pwr_qtrdbm[0 ] = - pi->nphy_pwrctrl_info[0 ].max_pwr_2g; - target_pwr_qtrdbm[1 ] = - pi->nphy_pwrctrl_info[1 ].max_pwr_2g; a1[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_2g_a1; a1[1 ] = pi->nphy_pwrctrl_info[1 ].pwrdet_2g_a1; b0[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_2g_b0;
@@ -17853,10 +17847,6 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi)case WL_CHAN_FREQ_RANGE_5GL : idle_tssi[0 ] = pi->nphy_pwrctrl_info[0 ].idle_tssi_5g; idle_tssi[1 ] = pi->nphy_pwrctrl_info[1 ].idle_tssi_5g; - target_pwr_qtrdbm[0 ] = - pi->nphy_pwrctrl_info[0 ].max_pwr_5gl; - target_pwr_qtrdbm[1 ] = - pi->nphy_pwrctrl_info[1 ].max_pwr_5gl; a1[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_5gl_a1; a1[1 ] = pi->nphy_pwrctrl_info[1 ].pwrdet_5gl_a1; b0[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_5gl_b0;
@@ -17867,10 +17857,6 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi)case WL_CHAN_FREQ_RANGE_5GM : idle_tssi[0 ] = pi->nphy_pwrctrl_info[0 ].idle_tssi_5g; idle_tssi[1 ] = pi->nphy_pwrctrl_info[1 ].idle_tssi_5g; - target_pwr_qtrdbm[0 ] = - pi->nphy_pwrctrl_info[0 ].max_pwr_5gm; - target_pwr_qtrdbm[1 ] = - pi->nphy_pwrctrl_info[1 ].max_pwr_5gm; a1[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_5gm_a1; a1[1 ] = pi->nphy_pwrctrl_info[1 ].pwrdet_5gm_a1; b0[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_5gm_b0;
@@ -17881,10 +17867,6 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi)case WL_CHAN_FREQ_RANGE_5GH : idle_tssi[0 ] = pi->nphy_pwrctrl_info[0 ].idle_tssi_5g; idle_tssi[1 ] = pi->nphy_pwrctrl_info[1 ].idle_tssi_5g; - target_pwr_qtrdbm[0 ] = - pi->nphy_pwrctrl_info[0 ].max_pwr_5gh; - target_pwr_qtrdbm[1 ] = - pi->nphy_pwrctrl_info[1 ].max_pwr_5gh; a1[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_5gh_a1; a1[1 ] = pi->nphy_pwrctrl_info[1 ].pwrdet_5gh_a1; b0[0 ] = pi->nphy_pwrctrl_info[0 ].pwrdet_5gh_b0;
@@ -17895,8 +17877,6 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi)default : idle_tssi[0 ] = pi->nphy_pwrctrl_info[0 ].idle_tssi_2g; idle_tssi[1 ] = pi->nphy_pwrctrl_info[1 ].idle_tssi_2g; - target_pwr_qtrdbm[0 ] =13 *4 ; - target_pwr_qtrdbm[1 ] =13 *4 ; a1[0 ] =-424 ; a1[1 ] =-424 ; b0[0 ] =5612 ;
@@ -17907,6 +17887,7 @@ static void wlc_phy_txpwrctrl_pwr_setup_nphy(struct brcms_phy *pi) } } +/* use the provided transmit power */ target_pwr_qtrdbm[0 ] = (s8 ) pi->tx_power_max; target_pwr_qtrdbm[1 ] = (s8 ) pi->tx_power_max;
Signature · 1 line
1.7.5.4
PATCH 4/15 brcm80211: smac: fix endless retry of A-MPDU transmissions
In reply to Arend van SprielThe A-MPDU code checked against a retry limit, but it was using the wrong variable to do so. This patch fixes this to assure proper retry mechanism.
This problem had a side-effect causing the mac80211 flush callback to remain waiting forever as well. That side effect has been fixed by commit by Stanislaw Gruszka:
commit f96b08a7e6f69c0f0a576554df3df5b1b519c479
Date: Tue Jan 17 12:38:50 2012 +0100
brcmsmac: fix tx queue flush infinite loop
Reference:
https://bugzilla.kernel.org/show_bug.cgi?id=42576
--- drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -5
@@ -1051,17 +1051,13 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, }/* either retransmit or send bar if ack not recd */ if (!ack_recd) { -struct ieee80211_tx_rate *txrate = - tx_info->status.rates; -if (retry && (txrate[0 ].count < (int )retry_limit)) { +if (retry && (ini->txretry[index] < (int )retry_limit)) { ini->txretry[index]++; ini->tx_in_transit--;/* * Use high prededence for retransmit to * give some punch */ -/* brcms_c_txq_enq(wlc, scb, p, -* BRCMS_PRIO_TO_PREC(tid)); */ brcms_c_txq_enq (wlc, scb, p,BRCMS_PRIO_TO_HI_PREC (tid)); }else {
Signature · 1 line
1.7.5.4
PATCH 6/15 brcm80211: fmac: resolve smatch issues in brcmfmac code
In reply to Arend van SprielThis patch resolves the following smatch issues:
wl_cfg80211.c +1377 brcmf_cfg80211_connect(65) warn: min_t truncates here '(sme->ssid_len)' (4294967295 vs 9223372036854775807) dhd_sdio.c +1275 brcmf_sdbrcm_rxglom(156) warn: min_t truncates here '(pfirst->len)' (2147483647 vs 4294967295)dhd_sdio.c +1457 brcmf_sdbrcm_rxglom(338) warn: min_t truncates here '(pfirst->len)' (2147483647 vs 4294967295)bcmsdh_sdmmc.c +300 brcmf_sdioh_request_buffer(10) warn: variable dereferenced before check 'pkt' (see line 295)
--- .../net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 3 ++- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c +2 -1
@@ -294,13 +294,14 @@ int brcmf_sdioh_request_buffer(struct brcmf_sdio_dev *sdiodev, struct sk_buff *pkt) {int status; -uint pkt_len = pkt->len; +uint pkt_len;bool fifo = (fix_inc ==SDIOH_DATA_FIX );brcmf_dbg (TRACE ,"Enter\n" );if (pkt ==NULL )return -EINVAL ; + pkt_len = pkt->len;brcmf_pm_resume_wait (sdiodev, &sdiodev->request_buffer_wait);if (brcmf_pm_resume_error (sdiodev))
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +1 -1
@@ -1376,7 +1376,7 @@ brcmf_cfg80211_connect(struct wiphy *wiphy, struct net_device *ndev,memset (&join_params,0 ,sizeof (join_params)); join_params_size =sizeof (join_params.ssid_le); - ssid.SSID_len =min_t (u32,sizeof (ssid.SSID), sme->ssid_len); + ssid.SSID_len =min_t (u32,sizeof (ssid.SSID), (u32 )sme->ssid_len);memcpy (&join_params.ssid_le.SSID, sme->ssid, ssid.SSID_len);memcpy (&ssid.SSID, sme->ssid, ssid.SSID_len); join_params.ssid_le.SSID_len =cpu_to_le32 (ssid.SSID_len);
Signature · 1 line
1.7.5.4
PATCH 7/15 brcm80211: fmac: make sure cancel_work_sync only called after INIT_WORK
In reply to Arend van SprielFrom: Franky Lin <[email protected]>
INIT_WORK only gets called after brcmf_proto_attach returns success. This dependency should be annotated in brcmf_detach to avoid any error.
--- .../net/wireless/brcm80211/brcmfmac/dhd_linux.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +4 -4
@@ -1109,13 +1109,13 @@ void brcmf_detach(struct device *dev)if (drvr->iflist[i])brcmf_del_if (drvr, i); -cancel_work_sync (&drvr->setmacaddr_work); -cancel_work_sync (&drvr->multicast_work); -brcmf_bus_detach (drvr); -if (drvr->prot) +if (drvr->prot) { +cancel_work_sync (&drvr->setmacaddr_work); +cancel_work_sync (&drvr->multicast_work);brcmf_proto_detach (drvr); + } bus_if->drvr =NULL ;kfree (drvr);
Signature · 1 line
1.7.5.4
PATCH 8/15 brcm80211: fmac: use specific types in struct brcmf_bus
In reply to Arend van SprielThe fields bus_priv and drvr are defined as void pointer. It is preferred to have specific types for compiler type checking. To prepare for other bus types the bus_priv field is defined as a union containing the sdio bus private structure reference.
--- .../net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 4 ++-- drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h | 7 +++++-- drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 10 +++++----- 3 files changed, 12 insertions(+), 9 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c +2 -2
@@ -489,7 +489,7 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func, sdiodev->func[0 ] = func->card->sdio_func[0 ]; sdiodev->func[1 ] = func; sdiodev->bus_if = bus_if; - bus_if->bus_priv = sdiodev; + bus_if->bus_priv.sdio = sdiodev; bus_if->type =SDIO_BUS ; bus_if->align =BRCMF_SDALIGN ;dev_set_drvdata (&func->card->dev, sdiodev);
@@ -530,7 +530,7 @@ static void brcmf_ops_sdio_remove(struct sdio_func *func)if (func->num ==2 ) { bus_if =dev_get_drvdata (&func->dev); - sdiodev = bus_if->bus_priv; + sdiodev = bus_if->bus_priv.sdio;brcmf_dbg (TRACE ,"F2 found, calling brcmf_sdio_remove...\n" );brcmf_sdio_remove (sdiodev);dev_set_drvdata (&func->card->dev,NULL );
drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h +5 -2
@@ -39,8 +39,11 @@ struct dngl_stats {/* interface structure between common and bus layer */ struct brcmf_bus {u8 type;/* bus type */ -void *bus_priv;/* pointer to bus private structure */ -void *drvr;/* pointer to driver pub structure brcmf_pub */ +union { +/* pointer to sdio private structure */ +struct brcmf_sdio_dev *sdio; + } bus_priv; +struct brcmf_pub *drvr;/* pointer to driver pub structure brcmf_pub */ enum brcmf_bus_state state;uint maxctl;/* Max size rxctl request from proto to bus */ bool drvr_up;/* Status flag of driver up/down */
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +5 -5
@@ -2277,7 +2277,7 @@ static void brcmf_sdbrcm_bus_stop(struct device *dev)uint retries;int err;struct brcmf_bus *bus_if =dev_get_drvdata (dev); -struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv; +struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;struct brcmf_sdio *bus = sdiodev->bus;brcmf_dbg (TRACE ,"Enter\n" );
@@ -2627,7 +2627,7 @@ static int brcmf_sdbrcm_bus_txdata(struct device *dev, struct sk_buff *pkt)int ret = -EBADE ;uint datalen, prec;struct brcmf_bus *bus_if =dev_get_drvdata (dev); -struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv; +struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;struct brcmf_sdio *bus = sdiodev->bus;brcmf_dbg (TRACE ,"Enter\n" );
@@ -2869,7 +2869,7 @@ brcmf_sdbrcm_bus_txctl(struct device *dev, unsigned char *msg, uint msglen)u8 doff =0 ;int ret =-1 ;struct brcmf_bus *bus_if =dev_get_drvdata (dev); -struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv; +struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;struct brcmf_sdio *bus = sdiodev->bus;brcmf_dbg (TRACE ,"Enter\n" );
@@ -2978,7 +2978,7 @@ brcmf_sdbrcm_bus_rxctl(struct device *dev, unsigned char *msg, uint msglen)uint rxlen =0 ;bool pending;struct brcmf_bus *bus_if =dev_get_drvdata (dev); -struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv; +struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;struct brcmf_sdio *bus = sdiodev->bus;brcmf_dbg (TRACE ,"Enter\n" );
@@ -3389,7 +3389,7 @@ brcmf_sdbrcm_download_firmware(struct brcmf_sdio *bus)static int brcmf_sdbrcm_bus_init (struct device *dev) {struct brcmf_bus *bus_if =dev_get_drvdata (dev); -struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv; +struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;struct brcmf_sdio *bus = sdiodev->bus;unsigned long timeout;uint retries =0 ;
Signature · 1 line
1.7.5.4
PATCH 11/15 brcm80211: fmac: update bus state in common driver part
In reply to Arend van SprielThe bus state is updated in the sdio bus init function, but it is better to do it when the brcmf_bus_start() function is completed successfully. The brcmf_netdev_open() function will return -EAGAIN until the state is updated instead of calling brcmf_bus_start() to avoid reentering that function.
--- .../net/wireless/brcm80211/brcmfmac/dhd_linux.c | 19 ++++++++----------- drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c | 3 --- 2 files changed, 8 insertions(+), 14 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +8 -11
@@ -796,18 +796,19 @@ static int brcmf_netdev_open(struct net_device *ndev) {struct brcmf_if *ifp =netdev_priv (ndev);struct brcmf_pub *drvr = ifp->drvr; +struct brcmf_bus *bus_if = drvr->bus_if;u32 toe_ol;s32 ret =0 ;brcmf_dbg (TRACE ,"ifidx %d\n" , ifp->idx);if (ifp->idx ==0 ) {/* do it only for primary eth0 */ -/* try to bring up bus */ - ret =brcmf_bus_start (drvr->dev); -if (ret !=0 ) { -brcmf_dbg (ERROR ,"failed with code %d\n" , ret); -return -1 ; +/* If bus is not ready, can't continue */ +if (bus_if->state !=BRCMF_BUS_DATA ) { +brcmf_dbg (ERROR ,"failed bus is not ready\n" ); +return -EAGAIN ; } +atomic_set (&drvr->pend_8021x_cnt,0 );memcpy (ndev->dev_addr, drvr->mac,ETH_ALEN );
@@ -979,12 +980,6 @@ int brcmf_bus_start(struct device *dev)return ret; } -/* If bus is not ready, can't come up */ -if (bus_if->state !=BRCMF_BUS_DATA ) { -brcmf_dbg (ERROR ,"failed bus is not ready\n" ); -return -ENODEV ; - } -brcmf_c_mkiovar ("event_msgs" , drvr->eventmask,BRCMF_EVENTING_MASK_LEN , iovbuf,sizeof (iovbuf)); brcmf_proto_cdc_query_dcmd(drvr, 0, BRCMF_C_GET_VAR, iovbuf,
@@ -1021,6 +1016,8 @@ int brcmf_bus_start(struct device *dev)if (ret <0 )return ret; +/* signal bus ready */ + bus_if->state =BRCMF_BUS_DATA ;return 0 ; }
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +0 -3
@@ -3464,9 +3464,6 @@ static int brcmf_sdbrcm_bus_init(struct device *dev)brcmf_sdcard_cfg_write (bus->sdiodev,SDIO_FUNC_1 ,SBSDIO_WATERMARK ,8 , &err); - -/* Set bus state according to enable result */ - bus_if->state =BRCMF_BUS_DATA ; }else {/* Disable F2 again */ enable =SDIO_FUNC_ENABLE_1 ;
Signature · 1 line
1.7.5.4
PATCH 13/15 brcm80211: fmac: use spinlock calls saving irq flags in brcmf_enq_event()
In reply to Arend van SprielThis function is executed within irq context. The call spin_unlock_irq does enable interrupts which is not desired in the irq context. This patch replaces them using the spin_loc_irqsave and spin_unlock_irqrestore functions.
--- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +3 -2
@@ -3308,6 +3308,7 @@ brcmf_enq_event(struct brcmf_cfg80211_priv *cfg_priv, u32 event, {struct brcmf_cfg80211_event_q *e;s32 err =0 ; +ulong flags; e =kzalloc (sizeof (struct brcmf_cfg80211_event_q ),GFP_ATOMIC );if (!e)
@@ -3316,9 +3317,9 @@ brcmf_enq_event(struct brcmf_cfg80211_priv *cfg_priv, u32 event, e->etype = event;memcpy (&e->emsg, msg,sizeof (struct brcmf_event_msg )); -spin_lock_irq (&cfg_priv->evt_q_lock); +spin_lock_irqsave (&cfg_priv->evt_q_lock, flags);list_add_tail (&e->evt_q_list, &cfg_priv->evt_q_list); -spin_unlock_irq (&cfg_priv->evt_q_lock); +spin_unlock_irqrestore (&cfg_priv->evt_q_lock, flags);return err; }
Signature · 1 line
1.7.5.4
PATCH 14/15 brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
In reply to Arend van SprielThis patch extends the use of the brcmfmac driver with support for chipsets with a USB host interface. The first chipsets supported are the bcm43235, bcm43236, and bcm43238 for which firmware has been submitted.
This driver change has been successfully built for x86, x86_64, ppc64, arm_le, and mips_be.
It has been tested successfully on x86 and x86_64.
--- drivers/net/wireless/brcm80211/Kconfig | 17 +- drivers/net/wireless/brcm80211/brcmfmac/Makefile | 6 +- drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h | 6 +- .../net/wireless/brcm80211/brcmfmac/dhd_linux.c | 8 + drivers/net/wireless/brcm80211/brcmfmac/usb.c | 1623 ++++++++++++++++++++ drivers/net/wireless/brcm80211/brcmfmac/usb.h | 84 + drivers/net/wireless/brcm80211/brcmfmac/usb_rdl.h | 75 + 7 files changed, 1812 insertions(+), 7 deletions(-) create mode 100644 drivers/net/wireless/brcm80211/brcmfmac/usb.c create mode 100644 drivers/net/wireless/brcm80211/brcmfmac/usb.h create mode 100644 drivers/net/wireless/brcm80211/brcmfmac/usb_rdl.h
drivers/net/wireless/brcm80211/Kconfig +13 -4
@@ -26,16 +26,25 @@ config BRCMFMAC it'll be called brcmfmac.ko. config BRCMFMAC_SDIO - bool "SDIO bus interface support for FullMAC" + bool "SDIO bus interface support for FullMAC driver" depends on MMC depends on BRCMFMAC select FW_LOADER default y ---help--- This option enables the SDIO bus interface support for Broadcom - FullMAC WLAN driver. - Say Y if you want to use brcmfmac for a compatible SDIO interface - wireless card. + IEEE802.11n embedded FullMAC WLAN driver. Say Y if you want to + use the driver for a SDIO wireless card. + +config BRCMFMAC_USB + bool "USB bus interface support for FullMAC driver" + depends on USB + depends on BRCMFMAC + select FW_LOADER + ---help--- + This option enables the USB bus interface support for Broadcom + IEEE802.11n embedded FullMAC WLAN driver. Say Y if you want to + use the driver for an USB wireless card. config BRCMDBG bool "Broadcom driver debug functions"
drivers/net/wireless/brcm80211/brcmfmac/Makefile +4 -2
@@ -19,6 +19,8 @@ ccflags-y += \ -Idrivers/net/wireless/brcm80211/brcmfmac \ -Idrivers/net/wireless/brcm80211/include +ccflags-y += -D__CHECK_ENDIAN__ + obj-$(CONFIG_BRCMFMAC) += brcmfmac.o brcmfmac-objs += \ wl_cfg80211.o \
@@ -30,5 +32,5 @@ brcmfmac-$(CONFIG_BRCMFMAC_SDIO) += \ bcmsdh.o \ bcmsdh_sdmmc.o \ sdio_chip.o - -ccflags-y += -D__CHECK_ENDIAN__ +brcmfmac-$(CONFIG_BRCMFMAC_USB) += \ + usb.o
drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h +5 -1
@@ -40,8 +40,8 @@ struct dngl_stats {struct brcmf_bus {u8 type;/* bus type */ union { -/* pointer to sdio private structure */ struct brcmf_sdio_dev *sdio; +struct brcmf_usbdev *usb; } bus_priv;struct brcmf_pub *drvr;/* pointer to driver pub structure brcmf_pub */ enum brcmf_bus_state state;
@@ -110,5 +110,9 @@ extern int brcmf_add_if(struct device *dev, int ifidx,extern void brcmf_sdio_exit (void );extern int brcmf_sdio_init (void );#endif +#ifdef CONFIG_BRCMFMAC_USB +extern void brcmf_usb_exit (void ); +extern int brcmf_usb_init (void ); +#endif #endif /* _BRCMF_BUS_H_ */
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +8 -0
@@ -1190,6 +1190,11 @@ static int __init brcmfmac_init(void)if (ret) goto fail;#endif +#ifdef CONFIG_BRCMFMAC_USB + ret =brcmf_usb_init (); +if (ret) + goto fail; +#endif fail:return ret;
@@ -1200,6 +1205,9 @@ static void __exit brcmfmac_exit(void)#ifdef CONFIG_BRCMFMAC_SDIO brcmf_sdio_exit ();#endif +#ifdef CONFIG_BRCMFMAC_USB +brcmf_usb_exit (); +#endif }module_init (brcmfmac_init);
drivers/net/wireless/brcm80211/brcmfmac/usb.c new file +1623 -0
1,623 lines not on this page · raw message
drivers/net/wireless/brcm80211/brcmfmac/usb.h new file +84 -0
84 lines not on this page · raw message
drivers/net/wireless/brcm80211/brcmfmac/usb_rdl.h new file +75 -0
75 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH 12/15 brcm80211: fmac: change allocation flag in brcmf_enq_event() function
In reply to Arend van SprielAs the function is called from atomic context it should not do the kzalloc call with GFP_KERNEL.
--- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +4 -2
@@ -3297,7 +3297,9 @@ static struct brcmf_cfg80211_event_q *brcmf_deq_event( }/* -** push event to tail of the queue +* push event to tail of the queue +* +* remark: this function may not sleep as it is called in atomic context. */ static s32
@@ -3307,7 +3309,7 @@ brcmf_enq_event(struct brcmf_cfg80211_priv *cfg_priv, u32 event,struct brcmf_cfg80211_event_q *e;s32 err =0 ; - e =kzalloc (sizeof (struct brcmf_cfg80211_event_q ),GFP_KERNEL ); + e =kzalloc (sizeof (struct brcmf_cfg80211_event_q ),GFP_ATOMIC );if (!e)return -ENOMEM ;
Signature · 1 line
1.7.5.4
Re: [PATCH 09/15] brcm80211: fmac: move module entry points to dhd_linux.c
In reply to Arend van SprielHi,
Quick query:
Quoted 20 lines · Arend van Spriel
The module_init/exit functions are moved to
dhd_linux.cto prepare for supporting multiple host interface types.Reviewed-by Pieter-Paul Giesberts <[email protected]>Reviewed-by Franky (Zhenhui) Lin <[email protected]>Signed-off-by Arend van Spriel <[email protected]>---
.../net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c | 7 +----drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h| 6 +++++.../net/wireless/brcm80211/brcmfmac/dhd_linux.c| 24 ++++++++++++++++++++3 files changed, 32 insertions(+), 5 deletions(-)drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +0
-0@@ -1183,3 +1183,27 @@ exit: return ret; } #endif /* DEBUG */
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c exit: · line 1195
Quoted 10 lines
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c +10
-0+ +static int __init brcmfmac_init (void ) +{ + int ret = 0; + +#ifdef CONFIG_BRCMFMAC_SDIO + ret = brcmf_sdio_init(); + if (ret) + goto fail; +#endif
I assume that the USB driver init will be added here as a separate #ifdef block.
If this is the case, doesn't this mean that on a system with both the USB and SDIO drivers enabled in .config, you won't be able to load the USB driver without the SDIO driver or vice-versa?
The model that most other drivers I've seen use is to have bus-specific modules and a common code module.
Thanks,
Signature · 5 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/ .Plan: http://sites.google.com/site/juliancalaby/
Re: [PATCH 01/15] brcm80211: update the maintainers listed for brcm80211 drivers
In reply to Arend van Spriel2012/2/9 Arend van Spriel <[email protected]>:
Quoted 2 lines
Henry Ptasinski is not working on the brcm80211 driver so taking his name/email out of the
MAINTAINERSfile.
/me votes for creating some brcm80211 ML finally
Signature · 1 line
Rafał
Re: [PATCH 09/15] brcm80211: fmac: move module entry points to dhd_linux.c
In reply to Julian CalabyQuoted 10 lines · Julian Calaby
Hi,
Quick query:
Quoted 3 lines · Arend van Spriel
The module_init/exit functions are moved to
dhd_linux.cto prepare for supporting multiple host interface types.I assume that the USB driver init will be added here as a separate #ifdef block.
Correct.
Quoted 3 lines
If this is the case, doesn't this mean that on a system with both the USB and SDIO drivers enabled in .config, you won't be able to load the USB driver without the SDIO driver or vice-versa?
True.
Quoted 5 lines
The model that most other drivers I've seen use is to have bus-specific modules and a common code module.
Thanks,
I've seen both flavors. We discussed it internally and both flavors have a price regarding system resources. Being curious by nature and open to discussion I invite kernel developers to spew their arguments for 1) separate modules and 2) kconfig option.
Gr. AvS
Quoted 7 lines · Arend van Spriel
This patch series contains patches for a couple of issue in brcmsmac. The A-MPDU endless retry fix is a long standing issue that exists in previous kernels. So it should go to 3.3 kernel.
For the brcmfmac driver support has been added for USB chipsets. Firmware has been submitted for bcm43235, bcm43236, and bcm43238 chipsets.
Hi John,
I send this patch series a while ago. I wanted to be sure whether they are scheduled to be taken in or is there some issue with it that we need to address, eg. indentation ;-) I looked in my email archive for community response and did not see any obvious show stopper there.
One patch in the series is same as I attached to redhat bug 787649 (see [1]).
Regards,
AvS
Quoted 17 lines · Arend van Spriel
Quoted 7 lines · Arend van Spriel
This patch series contains patches for a couple of issue in brcmsmac. The A-MPDU endless retry fix is a long standing issue that exists in previous kernels. So it should go to 3.3 kernel.
For the brcmfmac driver support has been added for USB chipsets. Firmware has been submitted for bcm43235, bcm43236, and bcm43238 chipsets.
Hi John,
I send this patch series a while ago. I wanted to be sure whether they are scheduled to be taken in or is there some issue with it that we need to address, eg. indentation ;-) I looked in my email archive for community response and did not see any obvious show stopper there.
Quoted 7 lines
One patch in the series is same as I attached to redhat bug 787649 (see [1]).
Regards,
AvS
I apologize to you and the other contributors. I've been embroiled in something elsewhere that has been occupying a lot of my time over the past week or two. I hope to be getting back to more regular -next merging soon.
I appreciate your patience!
John
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
Re: [PATCH 14/15] brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
In reply to Arend van Spriel2012/2/9 Arend van Spriel <[email protected]>:
Quoted 4 lines
This patch extends the use of the brcmfmac driver with support for chipsets with a USB host interface. The first chipsets supported are the bcm43235, bcm43236, and bcm43238 for which firmware has been submitted.
Can you say something more about the firmware? AFAICS brcm directory in linux-firmware.git contains:
brcmfmac43236b.bin
brcmfmac4329.bin
brcmfmac4330.bin
Quoted 1 line
+#define
BRCMF_USB_FW_NAME"brcm/brcmfmac-usb.bin"
However your driver seems to require *only* brcmfmac-usb.bin firmware file...
Signature · 1 line
Rafał
Re: [PATCH 14/15] brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
Quoted 13 lines · W dniu 23 lutego 2012 19:10 użytkownik Rafał Miłecki <[email protected]> napisał:
2012/2/9 Arend van Spriel <[email protected]>:
Quoted 4 lines
This patch extends the use of the brcmfmac driver with support for chipsets with a USB host interface. The first chipsets supported are the bcm43235, bcm43236, and bcm43238 for which firmware has been submitted.
Can you say something more about the firmware? AFAICS brcm directory in linux-firmware.git contains:
brcmfmac43236b.bin
brcmfmac4329.bin
brcmfmac4330.bin
Quoted 3 lines
Quoted 1 line
+#define
BRCMF_USB_FW_NAME"brcm/brcmfmac-usb.bin"However your driver seems to require *only* brcmfmac-usb.bin firmware file...
The only file passing usb.c::check_file test seems to be brcmfmac43236b.bin. I guess you meant this file name in usb.c.
Signature · 1 line
Rafał
Re: [PATCH 14/15] brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
Quoted 14 lines · Rafał Miłecki
Quoted 13 lines · W dniu 23 lutego 2012 19:10 użytkownik Rafał Miłecki<[email protected]> napisał:
2012/2/9 Arend van Spriel<[email protected]>:
Quoted 4 lines
This patch extends the use of the brcmfmac driver with support for chipsets with a USB host interface. The first chipsets supported are the bcm43235, bcm43236, and bcm43238 for which firmware has been submitted.
Can you say something more about the firmware? AFAICS brcm directory in linux-firmware.git contains:
brcmfmac43236b.bin
brcmfmac4329.bin
brcmfmac4330.bin
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
+#define
BRCMF_USB_FW_NAME"brcm/brcmfmac-usb.bin"However your driver seems to require *only* brcmfmac-usb.bin firmware file...
The only file passing
usb.c::check_filetest seems to be brcmfmac43236b.bin. I guess you meant this file name inusb.c.
Yes. bcm4329 and bcm4330 are SDIO cards. I will update the information on linuxwireless.
Gr. AvS
Re: [PATCH 14/15] brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
W dniu 23 lutego 2012 22:20 użytkownik Arend van Spriel
Quoted 27 lines · <[email protected]> napisał:
Quoted 26 lines · Rafał Miłecki
W dniu 23 lutego 2012 19:10 użytkownik Rafał Miłecki<[email protected]>
Quoted 21 lines · napisał:
2012/2/9 Arend van Spriel<[email protected]>:
Quoted 5 lines
This patch extends the use of the brcmfmac driver with support for chipsets with a USB host interface. The first chipsets supported are the bcm43235, bcm43236, and bcm43238 for which firmware has been submitted.
Can you say something more about the firmware? AFAICS brcm directory in linux-firmware.git contains:
brcmfmac43236b.bin
brcmfmac4329.bin
brcmfmac4330.binQuoted 1 line
+#define
BRCMF_USB_FW_NAME"brcm/brcmfmac-usb.bin"However your driver seems to require *only* brcmfmac-usb.bin firmware file...
Quoted 6 lines
Quoted 3 lines
The only file passing
usb.c::check_filetest seems to be brcmfmac43236b.bin. I guess you meant this file name inusb.c.Yes. bcm4329 and bcm4330 are SDIO cards. I will update the information on linuxwireless.
I'm afraid we don't understand each other. The problem is that filename of firmware submitted to the linux-firmware.git doesn't match filename requested by brcmfmac/usb.c.
brcmfmac43236b.bin != brcmfmac-usb.bin
Signature · 1 line
Rafał
Re: [PATCH 14/15] brcm80211: fmac: add USB support for bcm43235/6/8 chipsets
Quoted 33 lines · Rafał Miłecki
W dniu 23 lutego 2012 22:20 użytkownik Arend van Spriel
Quoted 31 lines · <[email protected]> napisał:
Quoted 29 lines · Rafał Miłecki
W dniu 23 lutego 2012 19:10 użytkownik Rafał Miłecki<[email protected]>
Quoted 16 lines · napisał:
2012/2/9 Arend van Spriel<[email protected]>:
Quoted 5 lines
This patch extends the use of the brcmfmac driver with support for chipsets with a USB host interface. The first chipsets supported are the bcm43235, bcm43236, and bcm43238 for which firmware has been submitted.
Can you say something more about the firmware? AFAICS brcm directory in linux-firmware.git contains:
brcmfmac43236b.bin
brcmfmac4329.bin
brcmfmac4330.binQuoted 5 lines
Quoted 1 line
+#define
BRCMF_USB_FW_NAME"brcm/brcmfmac-usb.bin"However your driver seems to require *only* brcmfmac-usb.bin firmware file...
The only file passing
usb.c::check_filetest seems to be brcmfmac43236b.bin. I guess you meant this file name inusb.c.
Quoted 9 lines
Quoted 2 lines
Yes. bcm4329 and bcm4330 are SDIO cards. I will update the information on linuxwireless.
I'm afraid we don't understand each other. The problem is that filename of firmware submitted to the linux-firmware.git doesn't match filename requested by
brcmfmac/usb.c.brcmfmac43236b.bin != brcmfmac-usb.bin
I do understand and the instruction on linux-wireless says:
cp brcm/brcmfmac43236b.bin /lib/firmware/brcm/brcmfmac/brcmfmac-usb.bin
et voila, they match. However, I can follow the reasoning you gave in your patch albeit unlikely that someone inserts two wireless dongles in system.
Gr. AvS