staging: brcm80211: fix perimeter locking in wl_ops_bss_info_changed
PATCH 1/4 staging: brcm80211: fix perimeter locking in wl_ops_bss_info_changed
In reply to a message not in the archiveSeveral code path in the wl_ops_bss_info_changed() callback were not using the perimeter lock. This gives potential of raise conditions so lock/unlock calls have been added.
--- drivers/staging/brcm80211/brcmsmac/wl_mac80211.c | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-)
drivers/staging/brcm80211/brcmsmac/wl_mac80211.c +11 -4
@@ -340,7 +340,9 @@ wl_ops_bss_info_changed(struct ieee80211_hw *hw,*/ wiphy_err (wiphy,"%s: %s: %sassociated\n" ,KBUILD_MODNAME , __func__, info->assoc ?"" :"dis" ); +WL_LOCK (wl);wlc_associate_upd (wl->wlc, info->assoc); +WL_UNLOCK (wl); }if (changed &BSS_CHANGED_ERP_SLOT ) {/* slot timing changed */
@@ -356,12 +358,15 @@ wl_ops_bss_info_changed(struct ieee80211_hw *hw,if (changed &BSS_CHANGED_HT ) {/* 802.11n parameters changed */ u16 mode = info->ht_operation_mode; + +WL_LOCK (wl);wlc_protection_upd (wl->wlc,WLC_PROT_N_CFG , mode &IEEE80211_HT_OP_MODE_PROTECTION );wlc_protection_upd (wl->wlc,WLC_PROT_N_NONGF , mode &IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT );wlc_protection_upd (wl->wlc,WLC_PROT_N_OBSS , mode &IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT ); +WL_UNLOCK (wl); }if (changed &BSS_CHANGED_BASIC_RATES ) {struct ieee80211_supported_band *bi;
@@ -370,13 +375,11 @@ wl_ops_bss_info_changed(struct ieee80211_hw *hw,struct wl_rateset rs;int error; -/* Basic rateset changed */ -no_printk ("%s: change basic rates: 0x%x\n" , - __func__, (u32 ) info->basic_rates); -/* retrieve the current rates */ +WL_LOCK (wl); error =wlc_ioctl (wl->wlc,WLC_GET_CURR_RATESET , &rs,sizeof (rs),NULL ); +WL_UNLOCK (wl);if (error) {wiphy_err (wiphy,"%s: retrieve rateset failed: %d\n" , __func__, error);
@@ -394,11 +397,15 @@ wl_ops_bss_info_changed(struct ieee80211_hw *hw, }/* update the rate set */ +WL_LOCK (wl);wlc_ioctl (wl->wlc,WLC_SET_RATESET , &rs,sizeof (rs),NULL ); +WL_UNLOCK (wl); }if (changed &BSS_CHANGED_BEACON_INT ) {/* Beacon interval changed */ +WL_LOCK (wl);wlc_set (wl->wlc,WLC_SET_BCNPRD , info->beacon_int); +WL_UNLOCK (wl); }if (changed &BSS_CHANGED_BSSID ) {/* BSSID changed, for whatever reason (IBSS and managed mode) */
Signature · 1 line
1.7.4.1
PATCH 3/4 staging: brcm80211: remove unused cis_hnbuvars
In reply to a message not in the archiveFrom: Henry Ptasinski <[email protected]>
The cis_hnbuvars structure is completely unused, so it can be deleted.
--- drivers/staging/brcm80211/util/bcmsrom_tbl.h | 70 -------------------------- 1 files changed, 0 insertions(+), 70 deletions(-)
drivers/staging/brcm80211/util/bcmsrom_tbl.h +0 -70
@@ -17,7 +17,6 @@ #ifndef _bcmsrom_tbl_h_ #define _bcmsrom_tbl_h_ -#include "sbpcmcia.h" #include "wlioctl.h" typedef struct {
@@ -511,73 +510,4 @@ typedef struct {#define OTP_MANFID (0xff - 3)/* CISTPL_MANFID */ #define OTP_RAW1 (0xff - 4)/* Like RAW, but comes first */ -static const cis_tuple_t cis_hnbuvars[] = { - {OTP_RAW1 ,0 ,"" },/* special case */ - {OTP_VERS_1 ,0 ,"smanf sproductname" },/* special case (non BRCM tuple) */ - {OTP_MANFID ,4 ,"2manfid 2prodid" },/* special case (non BRCM tuple) */ - {HNBU_SROMREV ,2 ,"1sromrev" }, -/* NOTE: subdevid is also written to boardtype. -* Need to write HNBU_BOARDTYPE to change it if it is different. -*/ - {HNBU_CHIPID ,11 ,"2vendid 2devid 2chiprev 2subvendid 2subdevid" }, - {HNBU_BOARDREV ,3 ,"2boardrev" }, - {HNBU_PAPARMS ,10 ,"2pa0b0 2pa0b1 2pa0b2 1pa0itssit 1pa0maxpwr 1opo" }, - {HNBU_AA ,3 ,"1aa2g 1aa5g" }, - {HNBU_AA ,3 ,"1aa0 1aa1" },/* backward compatibility */ - {HNBU_AG ,5 ,"1ag0 1ag1 1ag2 1ag3" }, - {HNBU_BOARDFLAGS ,9 ,"4boardflags 4boardflags2" }, - {HNBU_LEDS ,5 ,"1ledbh0 1ledbh1 1ledbh2 1ledbh3" }, - {HNBU_CCODE ,4 ,"2ccode 1cctl" }, - {HNBU_CCKPO ,3 ,"2cckpo" }, - {HNBU_OFDMPO ,5 ,"4ofdmpo" }, - {HNBU_RDLID ,3 ,"2rdlid" }, - {HNBU_RSSISMBXA2G ,3 ,"0rssismf2g 0rssismc2g 0rssisav2g 0bxa2g" },/* special case */ - {HNBU_RSSISMBXA5G ,3 ,"0rssismf5g 0rssismc5g 0rssisav5g 0bxa5g" },/* special case */ - {HNBU_XTALFREQ ,5 ,"4xtalfreq" }, - {HNBU_TRI2G ,2 ,"1tri2g" }, - {HNBU_TRI5G ,4 ,"1tri5gl 1tri5g 1tri5gh" }, - {HNBU_RXPO2G ,2 ,"1rxpo2g" }, - {HNBU_RXPO5G ,2 ,"1rxpo5g" }, - {HNBU_BOARDNUM ,3 ,"2boardnum" }, - {HNBU_MACADDR ,7 ,"6macaddr" },/* special case */ - {HNBU_RDLSN ,3 ,"2rdlsn" }, - {HNBU_BOARDTYPE ,3 ,"2boardtype" }, - {HNBU_LEDDC ,3 ,"2leddc" }, - {HNBU_RDLRNDIS ,2 ,"1rdlndis" }, - {HNBU_CHAINSWITCH ,5 ,"1txchain 1rxchain 2antswitch" }, - {HNBU_REGREV ,2 ,"1regrev" }, - {HNBU_FEM ,5 ,"0antswctl2g, 0triso2g, 0pdetrange2g, 0extpagain2g, 0tssipos2g" "0antswctl5g, 0triso5g, 0pdetrange5g, 0extpagain5g, 0tssipos5g" },/* special case */ - {HNBU_PAPARMS_C0 ,31 ,"1maxp2ga0 1itt2ga0 2pa2gw0a0 2pa2gw1a0 " -"2pa2gw2a0 1maxp5ga0 1itt5ga0 1maxp5gha0 1maxp5gla0 2pa5gw0a0 " -"2pa5gw1a0 2pa5gw2a0 2pa5glw0a0 2pa5glw1a0 2pa5glw2a0 2pa5ghw0a0 " -"2pa5ghw1a0 2pa5ghw2a0" }, - {HNBU_PAPARMS_C1 ,31 ,"1maxp2ga1 1itt2ga1 2pa2gw0a1 2pa2gw1a1 " -"2pa2gw2a1 1maxp5ga1 1itt5ga1 1maxp5gha1 1maxp5gla1 2pa5gw0a1 " -"2pa5gw1a1 2pa5gw2a1 2pa5glw0a1 2pa5glw1a1 2pa5glw2a1 2pa5ghw0a1 " -"2pa5ghw1a1 2pa5ghw2a1" }, - {HNBU_PO_CCKOFDM ,19 ,"2cck2gpo 4ofdm2gpo 4ofdm5gpo 4ofdm5glpo " -"4ofdm5ghpo" }, - {HNBU_PO_MCS2G ,17 ,"2mcs2gpo0 2mcs2gpo1 2mcs2gpo2 2mcs2gpo3 " -"2mcs2gpo4 2mcs2gpo5 2mcs2gpo6 2mcs2gpo7" }, - {HNBU_PO_MCS5GM ,17 ,"2mcs5gpo0 2mcs5gpo1 2mcs5gpo2 2mcs5gpo3 " -"2mcs5gpo4 2mcs5gpo5 2mcs5gpo6 2mcs5gpo7" }, - {HNBU_PO_MCS5GLH ,33 ,"2mcs5glpo0 2mcs5glpo1 2mcs5glpo2 2mcs5glpo3 " -"2mcs5glpo4 2mcs5glpo5 2mcs5glpo6 2mcs5glpo7 " -"2mcs5ghpo0 2mcs5ghpo1 2mcs5ghpo2 2mcs5ghpo3 " -"2mcs5ghpo4 2mcs5ghpo5 2mcs5ghpo6 2mcs5ghpo7" }, - {HNBU_CCKFILTTYPE ,2 ,"1cckdigfilttype" }, - {HNBU_PO_CDD ,3 ,"2cddpo" }, - {HNBU_PO_STBC ,3 ,"2stbcpo" }, - {HNBU_PO_40M ,3 ,"2bw40po" }, - {HNBU_PO_40MDUP ,3 ,"2bwduppo" }, - {HNBU_RDLRWU ,2 ,"1rdlrwu" }, - {HNBU_WPS ,3 ,"1wpsgpio 1wpsled" }, - {HNBU_USBFS ,2 ,"1usbfs" }, - {HNBU_CUSTOM1 ,5 ,"4customvar1" }, - {OTP_RAW ,0 ,"" },/* special case */ - {HNBU_OFDMPO5G ,13 ,"4ofdm5gpo 4ofdm5glpo 4ofdm5ghpo" }, - {HNBU_USBEPNUM ,3 ,"2usbepnum" }, - {0xFF ,0 ,"" } -}; -#endif /* _bcmsrom_tbl_h_ */
Signature · 1 line
1.7.4.1
PATCH 2/4 staging: brcm80211: use common pktq_flush functions
In reply to a message not in the archiveFrom: Henry Ptasinski <[email protected]>
The softmac and fullmac drivers can use the same implementation of pktq_flush(), so remove the unnecessary version.
--- drivers/staging/brcm80211/brcmfmac/dhd_sdio.c | 2 +- drivers/staging/brcm80211/include/bcmutils.h | 13 +---------- drivers/staging/brcm80211/util/bcmutils.c | 27 ------------------------- 3 files changed, 3 insertions(+), 39 deletions(-)
drivers/staging/brcm80211/brcmfmac/dhd_sdio.c +1 -1
@@ -2835,7 +2835,7 @@ void dhd_bus_stop(struct dhd_bus *bus, bool enforce_mutex)dhdsdio_clkctl (bus,CLK_SDONLY , false);/* Clear the data packet queues */ -pktq_flush (&bus->txq, true); +pktq_flush (&bus->txq, true,NULL ,0 );/* Clear any held glomming stuff */ if (bus->glomd)
drivers/staging/brcm80211/include/bcmutils.h +2 -11
@@ -99,13 +99,8 @@ extern struct sk_buff *pkt_buf_get_skb(uint len);extern void pkt_buf_free_skb (struct sk_buff *skb);/* Empty the queue at particular precedence level */ -#ifdef BRCM_FULLMAC -extern void pktq_pflush (struct pktq *pq,int prec, -bool dir); -#else -extern void pktq_pflush (struct pktq *pq,int prec, -bool dir,ifpkt_cb_t fn,int arg); -#endif /* BRCM_FULLMAC */ +extern void pktq_pflush (struct pktq *pq,int prec, +bool dir,ifpkt_cb_t fn,int arg);/* operations on a set of precedences in packet queue */
@@ -130,12 +125,8 @@ extern struct sk_buff *pktq_mdeq(struct pktq *pq, uint prec_bmp, int *prec_out);extern void pktq_init (struct pktq *pq,int num_prec,int max_len);/* prec_out may be NULL if caller is not interested in return value */ extern struct sk_buff *pktq_peek_tail (struct pktq *pq,int *prec_out); -#ifdef BRCM_FULLMAC -extern void pktq_flush (struct pktq *pq,bool dir); -#else extern void pktq_flush (struct pktq *pq,bool dir,ifpkt_cb_t fn,int arg); -#endif /* externs */ /* packet */
drivers/staging/brcm80211/util/bcmutils.c +0 -27
@@ -213,32 +213,6 @@ struct sk_buff *BCMFASTPATH pktq_pdeq_tail(struct pktq *pq, int prec)return p; } -#ifdef BRCM_FULLMAC -void pktq_pflush (struct pktq *pq,int prec,bool dir) -{ -struct pktq_prec *q; -struct sk_buff *p; - - q = &pq->q[prec]; - p = q->head; -while (p) { - q->head = p->prev; - p->prev =NULL ; -pkt_buf_free_skb (p); - q->len--; - pq->len--; - p = q->head; - } - q->tail =NULL ; -} - -void pktq_flush (struct pktq *pq,bool dir) -{ -int prec; -for (prec =0 ; prec < pq->num_prec; prec++) -pktq_pflush (pq, prec, dir); -} -#else /* !BRCM_FULLMAC */ void pktq_pflush (struct pktq *pq,int prec,bool dir,ifpkt_cb_t fn,int arg)
@@ -278,7 +252,6 @@ void pktq_flush(struct pktq *pq, bool dir,for (prec =0 ; prec < pq->num_prec; prec++)pktq_pflush (pq, prec, dir, fn, arg); } -#endif /* BRCM_FULLMAC */ void pktq_init (struct pktq *pq,int num_prec,int max_len) {
Signature · 1 line
1.7.4.1
PATCH 4/4 staging: brcm80211: delete unused sbpcmcia.h file
In reply to a message not in the archiveFrom: Henry Ptasinski <[email protected]>
This include file is no longer needed.
--- drivers/staging/brcm80211/util/sbpcmcia.h | 217 ----------------------------- 1 files changed, 0 insertions(+), 217 deletions(-) delete mode 100644 drivers/staging/brcm80211/util/sbpcmcia.h
drivers/staging/brcm80211/util/sbpcmcia.h deleted +0 -217
@@ -1,217 +0,0 @@ -/* -* Copyright (c) 2010 Broadcom Corporation -* -* Permission to use, copy, modify, and/or distribute this software for any -* purpose with or without fee is hereby granted, provided that the above -* copyright notice and this permission notice appear in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY -* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION -* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN -* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -*/ - -#ifndef _SBPCMCIA_H -#define _SBPCMCIA_H - -/* All the addresses that are offsets in attribute space are divided -* by two to account for the fact that odd bytes are invalid in -* attribute space and our read/write routines make the space appear -* as if they didn't exist. Still we want to show the original numbers -* as documented in the hnd_pcmcia core manual. -*/ - -/* PCMCIA Function Configuration Registers */ -#define PCMCIA_FCR (0x700 / 2) - -#define FCR0_OFF 0 -#define FCR1_OFF (0x40 / 2) -#define FCR2_OFF (0x80 / 2) -#define FCR3_OFF (0xc0 / 2) - -#define PCMCIA_FCR0 (0x700 / 2) -#define PCMCIA_FCR1 (0x740 / 2) -#define PCMCIA_FCR2 (0x780 / 2) -#define PCMCIA_FCR3 (0x7c0 / 2) - -/* Standard PCMCIA FCR registers */ - -#define PCMCIA_COR 0 - -#define COR_RST 0x80 -#define COR_LEV 0x40 -#define COR_IRQEN 0x04 -#define COR_BLREN 0x01 -#define COR_FUNEN 0x01 - -#define PCICIA_FCSR (2 / 2) -#define PCICIA_PRR (4 / 2) -#define PCICIA_SCR (6 / 2) -#define PCICIA_ESR (8 / 2) - -#define PCM_MEMOFF 0x0000 -#define F0_MEMOFF 0x1000 -#define F1_MEMOFF 0x2000 -#define F2_MEMOFF 0x3000 -#define F3_MEMOFF 0x4000 - -/* Memory base in the function fcr's */ -#define MEM_ADDR0 (0x728 / 2) -#define MEM_ADDR1 (0x72a / 2) -#define MEM_ADDR2 (0x72c / 2) - -/* PCMCIA base plus Srom access in fcr0: */ -#define PCMCIA_ADDR0 (0x072e / 2) -#define PCMCIA_ADDR1 (0x0730 / 2) -#define PCMCIA_ADDR2 (0x0732 / 2) - -#define MEM_SEG (0x0734 / 2) -#define SROM_CS (0x0736 / 2) -#define SROM_DATAL (0x0738 / 2) -#define SROM_DATAH (0x073a / 2) -#define SROM_ADDRL (0x073c / 2) -#define SROM_ADDRH (0x073e / 2) -#define SROM_INFO2 (0x0772 / 2)/* Corerev >= 2 && <= 5 */ -#define SROM_INFO (0x07be / 2)/* Corerev >= 6 */ - -/* Values for srom_cs: */ -#define SROM_IDLE 0 -#define SROM_WRITE 1 -#define SROM_READ 2 -#define SROM_WEN 4 -#define SROM_WDS 7 -#define SROM_DONE 8 - -/* Fields in srom_info: */ -#define SRI_SZ_MASK 0x03 -#define SRI_BLANK 0x04 -#define SRI_OTP 0x80 - -#if !defined(ESTA_POSTMOGRIFY_REMOVAL ) -/* CIS stuff */ - -/* The CIS stops where the FCRs start */ -#define CIS_SIZE PCMCIA_FCR - -/* CIS tuple length field max */ -#define CIS_TUPLE_LEN_MAX 0xff - -/* Standard tuples we know about */ - -#define CISTPL_NULL 0x00 -#define CISTPL_VERS_1 0x15/* CIS ver, manf, dev & ver strings */ -#define CISTPL_MANFID 0x20/* Manufacturer and device id */ -#define CISTPL_FUNCID 0x21/* Function identification */ -#define CISTPL_FUNCE 0x22/* Function extensions */ -#define CISTPL_CFTABLE 0x1b/* Config table entry */ -#define CISTPL_END 0xff/* End of the CIS tuple chain */ - -/* Function identifier provides context for the function extensions tuple */ -#define CISTPL_FID_SDIO 0x0c/* Extensions defined by SDIO spec */ - -/* Function extensions for LANs (assumed for extensions other than SDIO) */ -#define LAN_TECH 1/* Technology type */ -#define LAN_SPEED 2/* Raw bit rate */ -#define LAN_MEDIA 3/* Transmission media */ -#define LAN_NID 4/* Node identification (aka MAC addr) */ -#define LAN_CONN 5/* Connector standard */ - -/* CFTable */ -#define CFTABLE_REGWIN_2K 0x08/* 2k reg windows size */ -#define CFTABLE_REGWIN_4K 0x10/* 4k reg windows size */ -#define CFTABLE_REGWIN_8K 0x20/* 8k reg windows size */ - -/* Vendor unique tuples are 0x80-0x8f. Within Broadcom we'll -* take one for HNBU, and use "extensions" (a la FUNCE) within it. -*/ - -#define CISTPL_BRCM_HNBU 0x80 - -/* Subtypes of BRCM_HNBU: */ - -#define HNBU_SROMREV 0x00/* A byte with sromrev, 1 if not present */ -#define HNBU_CHIPID 0x01/* Two 16bit values: PCI vendor & device id */ -#define HNBU_BOARDREV 0x02/* One byte board revision */ -#define HNBU_PAPARMS 0x03/* PA parameters: 8 (sromrev == 1) -* or 9 (sromrev > 1) bytes -*/ -#define HNBU_OEM 0x04/* Eight bytes OEM data (sromrev == 1) */ -#define HNBU_CC 0x05/* Default country code (sromrev == 1) */ -#define HNBU_AA 0x06/* Antennas available */ -#define HNBU_AG 0x07/* Antenna gain */ -#define HNBU_BOARDFLAGS 0x08/* board flags (2 or 4 bytes) */ -#define HNBU_LEDS 0x09/* LED set */ -#define HNBU_CCODE 0x0a/* Country code (2 bytes ascii + 1 byte cctl) -* in rev 2 -*/ -#define HNBU_CCKPO 0x0b/* 2 byte cck power offsets in rev 3 */ -#define HNBU_OFDMPO 0x0c/* 4 byte 11g ofdm power offsets in rev 3 */ -#define HNBU_GPIOTIMER 0x0d/* 2 bytes with on/off values in rev 3 */ -#define HNBU_PAPARMS5G 0x0e/* 5G PA params */ -#define HNBU_ANT5G 0x0f/* 4328 5G antennas available/gain */ -#define HNBU_RDLID 0x10/* 2 byte USB remote downloader (RDL) product Id */ -#define HNBU_RSSISMBXA2G 0x11/* 4328 2G RSSI mid pt sel & board switch arch, -* 2 bytes, rev 3. -*/ -#define HNBU_RSSISMBXA5G 0x12/* 4328 5G RSSI mid pt sel & board switch arch, -* 2 bytes, rev 3. -*/ -#define HNBU_XTALFREQ 0x13/* 4 byte Crystal frequency in kilohertz */ -#define HNBU_TRI2G 0x14/* 4328 2G TR isolation, 1 byte */ -#define HNBU_TRI5G 0x15/* 4328 5G TR isolation, 3 bytes */ -#define HNBU_RXPO2G 0x16/* 4328 2G RX power offset, 1 byte */ -#define HNBU_RXPO5G 0x17/* 4328 5G RX power offset, 1 byte */ -#define HNBU_BOARDNUM 0x18/* board serial number, independent of mac addr */ -#define HNBU_MACADDR 0x19/* mac addr override for the standard CIS LAN_NID */ -#define HNBU_RDLSN 0x1a/* 2 bytes; serial # advertised in USB descriptor */ -#define HNBU_BOARDTYPE 0x1b/* 2 bytes; boardtype */ -#define HNBU_LEDDC 0x1c/* 2 bytes; LED duty cycle */ -#define HNBU_HNBUCIS 0x1d/* what follows is proprietary HNBU CIS format */ -#define HNBU_PAPARMS_SSLPNPHY 0x1e/* SSLPNPHY PA params */ -#define HNBU_RSSISMBXA2G_SSLPNPHY 0x1f/* SSLPNPHY RSSI mid pt sel & board switch arch */ -#define HNBU_RDLRNDIS 0x20/* 1 byte; 1 = RDL advertises RNDIS config */ -#define HNBU_CHAINSWITCH 0x21/* 2 byte; txchain, rxchain */ -#define HNBU_REGREV 0x22/* 1 byte; */ -#define HNBU_FEM 0x23/* 2 or 4 byte: 11n frontend specification */ -#define HNBU_PAPARMS_C0 0x24/* 8 or 30 bytes: 11n pa paramater for chain 0 */ -#define HNBU_PAPARMS_C1 0x25/* 8 or 30 bytes: 11n pa paramater for chain 1 */ -#define HNBU_PAPARMS_C2 0x26/* 8 or 30 bytes: 11n pa paramater for chain 2 */ -#define HNBU_PAPARMS_C3 0x27/* 8 or 30 bytes: 11n pa paramater for chain 3 */ -#define HNBU_PO_CCKOFDM 0x28/* 6 or 18 bytes: cck2g/ofdm2g/ofdm5g power offset */ -#define HNBU_PO_MCS2G 0x29/* 8 bytes: mcs2g power offset */ -#define HNBU_PO_MCS5GM 0x2a/* 8 bytes: mcs5g mid band power offset */ -#define HNBU_PO_MCS5GLH 0x2b/* 16 bytes: mcs5g low-high band power offset */ -#define HNBU_PO_CDD 0x2c/* 2 bytes: cdd2g/5g power offset */ -#define HNBU_PO_STBC 0x2d/* 2 bytes: stbc2g/5g power offset */ -#define HNBU_PO_40M 0x2e/* 2 bytes: 40Mhz channel 2g/5g power offset */ -#define HNBU_PO_40MDUP 0x2f/* 2 bytes: 40Mhz channel dup 2g/5g power offset */ - -#define HNBU_RDLRWU 0x30/* 1 byte; 1 = RDL advertises Remote Wake-up */ -#define HNBU_WPS 0x31/* 1 byte; GPIO pin for WPS button */ -#define HNBU_USBFS 0x32/* 1 byte; 1 = USB advertises FS mode only */ -#define HNBU_BRMIN 0x33/* 4 byte bootloader min resource mask */ -#define HNBU_BRMAX 0x34/* 4 byte bootloader max resource mask */ -#define HNBU_PATCH 0x35/* bootloader patch addr(2b) & data(4b) pair */ -#define HNBU_CCKFILTTYPE 0x36/* CCK digital filter selection options */ -#define HNBU_OFDMPO5G 0x37/* 4 * 3 = 12 byte 11a ofdm power offsets in rev 3 */ - -#define HNBU_USBEPNUM 0x40/* USB endpoint numbers */ -#define HNBU_SROM3SWRGN 0x80/* 78 bytes; srom rev 3 s/w region without crc8 -* plus extra info appended. -*/ -#define HNBU_RESERVED 0x81/* Reserved for non-BRCM post-mfg additions */ -#define HNBU_CUSTOM1 0x82/* 4 byte; For non-BRCM post-mfg additions */ -#define HNBU_CUSTOM2 0x83/* Reserved; For non-BRCM post-mfg additions */ -#endif /* !defined(ESTA_POSTMOGRIFY_REMOVAL) */ - -/* sbtmstatelow */ -#define SBTML_INT_ACK 0x40000/* ack the sb interrupt */ -#define SBTML_INT_EN 0x20000/* enable sb interrupt */ - -/* sbtmstatehigh */ -#define SBTMH_INT_STATUS 0x40000/* sb interrupt status */ - -#endif /* _SBPCMCIA_H */
Signature · 1 line
1.7.4.1