Please pull 'upstream-fixes' branch of wireless-2.6
The following changes since commit a21bd69e1509b43823c317c3bf3f7ffa99884356:
Linus Torvalds (1):
Linux 2.6.21-rc6
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream-fixes
Daniel Drake (2):
zd1211rw: Reject AL2230S devices
zd1211rw: Fix E2P_PHY_REG patching
Larry Finger (2):
bcm43xx: Fix 802.11b/g scan limits to match regulatory reqs
bcm43xx: Fix PPC machine checks and match loopback gain specs
drivers/net/wireless/bcm43xx/bcm43xx_main.c | 20 +++++++++- drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 57 ++++++++++++++----------- drivers/net/wireless/zd1211rw/zd_chip.c | 12 ++---- drivers/net/wireless/zd1211rw/zd_chip.h | 4 +- drivers/net/wireless/zd1211rw/zd_rf_al2230.c | 6 +++ 5 files changed, 63 insertions(+), 36 deletions(-)
drivers/net/wireless/bcm43xx/bcm43xx_main.c +19 -1
@@ -946,6 +946,7 @@ static int bcm43xx_geo_init(struct bcm43xx_private *bcm)u8 channel;struct bcm43xx_phyinfo *phy;const char *iso_country; +u8 max_bg_channel; geo =kzalloc (sizeof (*geo),GFP_KERNEL );if (!geo)
@@ -967,6 +968,23 @@ static int bcm43xx_geo_init(struct bcm43xx_private *bcm) } iso_country =bcm43xx_locale_iso (bcm->sprom.locale); +/* set the maximum channel based on locale set in sprom or witle locale option */ +switch (bcm->sprom.locale) { +case BCM43xx_LOCALE_THAILAND: +case BCM43xx_LOCALE_ISRAEL: +case BCM43xx_LOCALE_JORDAN: +case BCM43xx_LOCALE_USA_CANADA_ANZ: +case BCM43xx_LOCALE_USA_LOW: + max_bg_channel =11 ; +break ; +case BCM43xx_LOCALE_JAPAN: +case BCM43xx_LOCALE_JAPAN_HIGH: + max_bg_channel =14 ; +break ; +default : + max_bg_channel =13 ; + } +if (have_a) {for (i =0 , channel =IEEE80211_52GHZ_MIN_CHANNEL ; channel <=IEEE80211_52GHZ_MAX_CHANNEL ; channel++) {
@@ -978,7 +996,7 @@ static int bcm43xx_geo_init(struct bcm43xx_private *bcm) }if (have_bg) {for (i =0 , channel =IEEE80211_24GHZ_MIN_CHANNEL ; - channel <=IEEE80211_24GHZ_MAX_CHANNEL ; channel++) { + channel <= max_bg_channel; channel++) { chan = &geo->bg[i++]; chan->freq =bcm43xx_channel_to_freq_bg (channel); chan->channel = channel;
drivers/net/wireless/bcm43xx/bcm43xx_phy.c +32 -25
124 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_chip.c +4 -8
@@ -337,6 +337,7 @@ static int read_pod(struct zd_chip *chip, u8 *rf_type) chip->patch_cr157 = (value >>13 ) &0x1 ; chip->patch_6m_band_edge = (value >>21 ) &0x1 ; chip->new_phy_layout = (value >>31 ) &0x1 ; + chip->al2230s_bit = (value >>7 ) &0x1 ; chip->link_led = ((value >>4 ) &1 ) ?LED1 :LED2 ; chip->supports_tx_led =1 ;if (value & (1 <<24 )) {/* LED scenario */
@@ -591,16 +592,16 @@ int zd_chip_unlock_phy_regs(struct zd_chip *chip)return r; } -/* CR157 can be optionally patched by the EEPROM */ +/* CR157 can be optionally patched by the EEPROM for original ZD1211 */ static int patch_cr157 (struct zd_chip *chip) {int r; -u32 value; +u16 value;if (!chip->patch_cr157)return 0 ; - r =zd_ioread32_locked (chip, &value,E2P_PHY_REG ); + r =zd_ioread16_locked (chip, &value,E2P_PHY_REG );if (r)return r;
@@ -790,11 +791,6 @@ static int zd1211b_hw_reset_phy(struct zd_chip *chip) goto out; r =zd_iowrite16a_locked (chip, ioreqs,ARRAY_SIZE (ioreqs)); -if (r) - goto unlock; - - r =patch_cr157 (chip); -unlock: t =zd_chip_unlock_phy_regs (chip);if (t && !r) r = t;
drivers/net/wireless/zd1211rw/zd_chip.h +2 -2
@@ -641,8 +641,8 @@ enum {* also only 11 channels. */ #define E2P_ALLOWED_CHANNEL E2P_DATA(0x18) -#define E2P_PHY_REG E2P_DATA(0x1a)#define E2P_DEVICE_VER E2P_DATA(0x20) +#define E2P_PHY_REG E2P_DATA(0x25)#define E2P_36M_CAL_VALUE1 E2P_DATA(0x28)#define E2P_36M_CAL_VALUE2 E2P_DATA(0x2a)#define E2P_36M_CAL_VALUE3 E2P_DATA(0x2c)
@@ -711,7 +711,7 @@ struct zd_chip {u16 link_led; unsigned int pa_type:4, patch_cck_gain:1, patch_cr157:1, patch_6m_band_edge:1, - new_phy_layout:1, + new_phy_layout:1, al2230s_bit:1, is_zd1211b:1, supports_tx_led:1; };
drivers/net/wireless/zd1211rw/zd_rf_al2230.c +6 -0
@@ -358,6 +358,12 @@ int zd_rf_init_al2230(struct zd_rf *rf) {struct zd_chip *chip =zd_rf_to_chip (rf); +if (chip->al2230s_bit) { +dev_err (zd_chip_dev (chip),"AL2230S devices are not yet " +"supported by this driver.\n" ); +return -ENODEV ; + } + rf->switch_radio_off = al2230_switch_radio_off;if (chip->is_zd1211b) { rf->init_hw = zd1211b_al2230_init_hw;
Signature · 2 lines
John W. Linville [email protected]
Please pull 'upstream' branch of wireless-2.6 (actually 'for-jgarzik')
Jeff,
I branched off netdev-2.6#upstream, pulled my upstream into it, and resolved the conflicts. So, you probably want to pull from here instead:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git for-jgarzik
FWIW, this also includes the patches from the pull request posted on 27 March 2007:
http://marc.info/?l=linux-wireless&m=117514552402407&w=2
Thanks,
John
---
The following changes since commit 61bbb97c8b54f547a6f77c2849bc2e3005c886e4:
John W. Linville (1):
Merge branch 'upstream-fixes' into upstream
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream
Daniel Drake (4):
zd1211rw: Remove invalid CR write during ZD1211 phy reset
zd1211rw: rework band edge patching
zd1211rw: Add AL7230B RF support for ZD1211B
zd1211rw: Add ID for ZyXEL AG-220
Larry Finger (2):
bcm43xx: Change initialization for 2050 radios
ieee80211-crypt: Make some TKIP and CCMP error logging conditional
Marcin Juszkiewicz (1):
hostap_cs: support ADLINK 345 CF
Pavel Roskin (1):
Remove comment about IEEE80211_RADIOTAP_FCS
drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 15 +- drivers/net/wireless/bcm43xx/bcm43xx_phy.h | 4 + drivers/net/wireless/bcm43xx/bcm43xx_radio.c | 196 +++++++++++++-- drivers/net/wireless/hostap/hostap_cs.c | 2 + drivers/net/wireless/zd1211rw/zd_chip.c | 38 ++-- drivers/net/wireless/zd1211rw/zd_chip.h | 1 + drivers/net/wireless/zd1211rw/zd_rf.c | 14 + drivers/net/wireless/zd1211rw/zd_rf.h | 9 +- drivers/net/wireless/zd1211rw/zd_rf_al2230.c | 2 +- drivers/net/wireless/zd1211rw/zd_rf_al7230b.c | 317 +++++++++++++++++++++---- drivers/net/wireless/zd1211rw/zd_usb.c | 1 + include/net/ieee80211_radiotap.h | 3 - net/ieee80211/ieee80211_crypt_ccmp.c | 2 +- net/ieee80211/ieee80211_crypt_tkip.c | 4 +- 14 files changed, 500 insertions(+), 108 deletions(-)
drivers/net/wireless/bcm43xx/bcm43xx_phy.c +10 -5
@@ -300,16 +300,20 @@ static void bcm43xx_phy_agcsetup(struct bcm43xx_private *bcm)if (phy->rev >2 ) {bcm43xx_phy_write (bcm,0x0422 ,0x287A ); -bcm43xx_phy_write (bcm,0x0420 , (bcm43xx_phy_read (bcm,0x0420 ) &0x0FFF ) |0x3000 ); +bcm43xx_phy_write (bcm,0x0420 , (bcm43xx_phy_read (bcm,0x0420 ) + &0x0FFF ) |0x3000 ); } -bcm43xx_phy_write (bcm,0x04A8 , (bcm43xx_phy_read (bcm,0x04A8 ) &0x8080 ) |0x7874 ); +bcm43xx_phy_write (bcm,0x04A8 , (bcm43xx_phy_read (bcm,0x04A8 ) &0x8080 ) + |0x7874 );bcm43xx_phy_write (bcm,0x048E ,0x1C00 );if (phy->rev ==1 ) { -bcm43xx_phy_write (bcm,0x04AB , (bcm43xx_phy_read (bcm,0x04AB ) &0xF0FF ) |0x0600 ); +bcm43xx_phy_write (bcm,0x04AB , (bcm43xx_phy_read (bcm,0x04AB ) + &0xF0FF ) |0x0600 );bcm43xx_phy_write (bcm,0x048B ,0x005E ); -bcm43xx_phy_write (bcm,0x048C , (bcm43xx_phy_read (bcm,0x048C ) &0xFF00 ) |0x001E ); +bcm43xx_phy_write (bcm,0x048C , (bcm43xx_phy_read (bcm,0x048C ) + &0xFF00 ) |0x001E );bcm43xx_phy_write (bcm,0x048D ,0x0002 ); }
@@ -335,7 +339,8 @@ static void bcm43xx_phy_setupg(struct bcm43xx_private *bcm)if (phy->rev ==1 ) {bcm43xx_phy_write (bcm,0x0406 ,0x4F19 );bcm43xx_phy_write (bcm, BCM43xx_PHY_G_CRS, - (bcm43xx_phy_read (bcm, BCM43xx_PHY_G_CRS) &0xFC3F ) |0x0340 ); + (bcm43xx_phy_read (bcm, BCM43xx_PHY_G_CRS) + &0xFC3F ) |0x0340 );bcm43xx_phy_write (bcm,0x042C ,0x005A );bcm43xx_phy_write (bcm,0x0427 ,0x001A );
drivers/net/wireless/bcm43xx/bcm43xx_phy.h +4 -0
@@ -48,6 +48,10 @@ void bcm43xx_raw_phy_unlock(struct bcm43xx_private *bcm);local_irq_restore (flags); \ }while (0 ) +/* Card uses the loopback gain stuff */ +#define has_loopback_gain (phy) \ + (((phy)->rev > 1) || ((phy)->connected)) +u16 bcm43xx_phy_read (struct bcm43xx_private *bcm,u16 offset);void bcm43xx_phy_write (struct bcm43xx_private *bcm,u16 offset,u16 val);
drivers/net/wireless/bcm43xx/bcm43xx_radio.c +170 -26
283 lines not on this page · raw message
drivers/net/wireless/hostap/hostap_cs.c +2 -0
@@ -838,6 +838,8 @@ static struct pcmcia_device_id hostap_cs_ids[] = {PCMCIA_DEVICE_MANF_CARD (0xd601 ,0x0005 ),PCMCIA_DEVICE_MANF_CARD (0xd601 ,0x0010 ),PCMCIA_DEVICE_MANF_CARD (0x0126 ,0x0002 ), +PCMCIA_DEVICE_MANF_CARD_PROD_ID1 (0xd601 ,0x0005 ,"ADLINK 345 CF" , +0x2d858104 ),PCMCIA_DEVICE_MANF_CARD_PROD_ID1 (0x0156 ,0x0002 ,"INTERSIL" ,0x74c5e40d ), PCMCIA_DEVICE_MANF_CARD_PROD_ID1(0x0156, 0x0002, "Intersil",
drivers/net/wireless/zd1211rw/zd_chip.c +23 -15
@@ -615,16 +615,24 @@ static int patch_cr157(struct zd_chip *chip)* Vendor driver says: for FCC regulation, enabled per HWFeature 6M band edge * bit (for AL2230, AL2230S) */ -static int patch_6m_band_edge (struct zd_chip *chip,int channel) +static int patch_6m_band_edge (struct zd_chip *chip,u8 channel) +{ +ZD_ASSERT (mutex_is_locked (&chip->mutex)); +if (!chip->patch_6m_band_edge) +return 0 ; + +return zd_rf_patch_6m_band_edge (&chip->rf, channel); +} + +/* Generic implementation of 6M band edge patching, used by most RFs via +* zd_rf_generic_patch_6m() */ +int zd_chip_generic_patch_6m_band (struct zd_chip *chip,int channel) {struct zd_ioreq16 ioreqs[] = { {CR128 ,0x14 }, {CR129 ,0x12 }, {CR130 ,0x10 }, {CR47 ,0x1e }, }; -if (!chip->patch_6m_band_edge || !chip->rf.patch_6m_band_edge) -return 0 ; -/* FIXME: Channel 11 is not the edge for all regulatory domains. */ if (channel ==1 || channel ==11 ) ioreqs[0 ].value =0x12 ;
@@ -684,17 +692,17 @@ static int zd1211_hw_reset_phy(struct zd_chip *chip) { CR111, 0x27 }, { CR112, 0x27 }, { CR113, 0x27 }, { CR114, 0x27 }, { CR115, 0x26 }, { CR116, 0x24 }, { CR117, 0xfc }, { CR118, 0xfa }, { CR120, 0x4f }, - { CR123, 0x27 }, { CR125, 0xaa }, { CR127, 0x03 }, - { CR128, 0x14 }, { CR129, 0x12 }, { CR130, 0x10 }, - { CR131, 0x0C }, { CR136, 0xdf }, { CR137, 0x40 }, - { CR138, 0xa0 }, { CR139, 0xb0 }, { CR140, 0x99 }, - { CR141, 0x82 }, { CR142, 0x54 }, { CR143, 0x1c }, - { CR144, 0x6c }, { CR147, 0x07 }, { CR148, 0x4c }, - { CR149, 0x50 }, { CR150, 0x0e }, { CR151, 0x18 }, - { CR160, 0xfe }, { CR161, 0xee }, { CR162, 0xaa }, - { CR163, 0xfa }, { CR164, 0xfa }, { CR165, 0xea }, - { CR166, 0xbe }, { CR167, 0xbe }, { CR168, 0x6a }, - { CR169, 0xba }, { CR170, 0xba }, { CR171, 0xba }, + { CR125, 0xaa }, { CR127, 0x03 }, { CR128, 0x14 }, + { CR129, 0x12 }, { CR130, 0x10 }, { CR131, 0x0C }, + { CR136, 0xdf }, { CR137, 0x40 }, { CR138, 0xa0 }, + { CR139, 0xb0 }, { CR140, 0x99 }, { CR141, 0x82 }, + { CR142, 0x54 }, { CR143, 0x1c }, { CR144, 0x6c }, + { CR147, 0x07 }, { CR148, 0x4c }, { CR149, 0x50 }, + { CR150, 0x0e }, { CR151, 0x18 }, { CR160, 0xfe }, + { CR161, 0xee }, { CR162, 0xaa }, { CR163, 0xfa }, + { CR164, 0xfa }, { CR165, 0xea }, { CR166, 0xbe }, + { CR167, 0xbe }, { CR168, 0x6a }, { CR169, 0xba }, + { CR170, 0xba }, { CR171, 0xba },/* Note: CR204 must lead the CR203 */ { CR204, 0x7d }, { },
drivers/net/wireless/zd1211rw/zd_chip.h +1 -0
@@ -833,6 +833,7 @@ int zd_chip_enable_rx(struct zd_chip *chip);void zd_chip_disable_rx (struct zd_chip *chip);int zd_chip_enable_hwint (struct zd_chip *chip);int zd_chip_disable_hwint (struct zd_chip *chip); +int zd_chip_generic_patch_6m_band (struct zd_chip *chip,int channel);int zd_chip_set_rts_cts_rate_locked (struct zd_chip *chip,u8 rts_rate,int preamble);
drivers/net/wireless/zd1211rw/zd_rf.c +14 -0
@@ -154,3 +154,17 @@ int zd_switch_radio_off(struct zd_rf *rf) r = t;return r; } + +int zd_rf_patch_6m_band_edge (struct zd_rf *rf,u8 channel) +{ +if (!rf->patch_6m_band_edge) +return 0 ; + +return rf->patch_6m_band_edge (rf, channel); +} + +int zd_rf_generic_patch_6m (struct zd_rf *rf,u8 channel) +{ +return zd_chip_generic_patch_6m_band (zd_rf_to_chip (rf), channel); +} +
drivers/net/wireless/zd1211rw/zd_rf.h +4 -5
@@ -47,17 +47,13 @@ struct zd_rf {u8 type;u8 channel; -/* -* Whether this RF should patch the 6M band edge -* (assuming E2P_POD agrees) -*/ - u8 patch_6m_band_edge:1;/* RF-specific functions */ int (*init_hw)(struct zd_rf *rf);int (*set_channel)(struct zd_rf *rf,u8 channel);int (*switch_radio_on)(struct zd_rf *rf);int (*switch_radio_off)(struct zd_rf *rf); +int (*patch_6m_band_edge)(struct zd_rf *rf,u8 channel); };const char *zd_rf_name (u8 type);
@@ -72,6 +68,9 @@ int zd_rf_set_channel(struct zd_rf *rf, u8 channel);int zd_switch_radio_on (struct zd_rf *rf);int zd_switch_radio_off (struct zd_rf *rf); +int zd_rf_patch_6m_band_edge (struct zd_rf *rf,u8 channel); +int zd_rf_generic_patch_6m (struct zd_rf *rf,u8 channel); +/* Functions for individual RF chips */ int zd_rf_init_rf2959 (struct zd_rf *rf);
drivers/net/wireless/zd1211rw/zd_rf_al2230.c +1 -1
@@ -437,6 +437,6 @@ int zd_rf_init_al2230(struct zd_rf *rf) rf->set_channel = zd1211_al2230_set_channel; rf->switch_radio_on = zd1211_al2230_switch_radio_on; } - rf->patch_6m_band_edge =1 ; + rf->patch_6m_band_edge = zd_rf_generic_patch_6m;return 0 ; }
drivers/net/wireless/zd1211rw/zd_rf_al7230b.c +267 -50
414 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_usb.c +1 -0
@@ -66,6 +66,7 @@ static struct usb_device_id usb_ids[] = { { USB_DEVICE(0x0b05, 0x171b), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x0586, 0x3410), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x0baf, 0x0121), .driver_info = DEVICE_ZD1211B }, + { USB_DEVICE(0x0586, 0x3412), .driver_info = DEVICE_ZD1211B }, /* "Driverless" devices that need ejecting */ { USB_DEVICE(0x0ace, 0x2011), .driver_info = DEVICE_INSTALLER }, {}
include/net/ieee80211_radiotap.h +0 -3
@@ -186,9 +186,6 @@ struct ieee80211_radiotap_header {* * Number of unicast retries a transmitted frame used. * -* IEEE80211_RADIOTAP_FCS __le32 data -* -* FCS from frame in network byte order. */ enum ieee80211_radiotap_type {IEEE80211_RADIOTAP_TSFT =0 ,
net/ieee80211/ieee80211_crypt_ccmp.c +1 -1
@@ -338,7 +338,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)if (ccmp_replay_check (pn, key->rx_pn)) {if (net_ratelimit ()) { - printk(KERN_DEBUG "CCMP: replay detected: STA=" MAC_FMT + IEEE80211_DEBUG_DROP("CCMP: replay detected: STA=" MAC_FMT " previous PN %02x%02x%02x%02x%02x%02x " "received PN %02x%02x%02x%02x%02x%02x\n", MAC_ARG(hdr->addr2), MAC_ARG(key->rx_pn),
net/ieee80211/ieee80211_crypt_tkip.c +2 -2
@@ -465,7 +465,7 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv)if (tkip_replay_check (iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) {if (net_ratelimit ()) { -printk (KERN_DEBUG "TKIP: replay detected: STA=" MAC_FMT +IEEE80211_DEBUG_DROP ("TKIP: replay detected: STA=" MAC_FMT " previous TSC %08x%04x received TSC " "%08x%04x\n" ,MAC_ARG (hdr->addr2), tkey->rx_iv32, tkey->rx_iv16, iv32, iv16);
@@ -507,7 +507,7 @@ static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) tkey->rx_phase1_done =0 ; }if (net_ratelimit ()) { -printk (KERN_DEBUG "TKIP: ICV error detected: STA=" +IEEE80211_DEBUG_DROP ("TKIP: ICV error detected: STA=" MAC_FMT "\n" ,MAC_ARG (hdr->addr2)); } tkey->dot11RSNAStatsTKIPICVErrors++;
Signature · 2 lines
John W. Linville [email protected]
Re: Please pull 'upstream' branch of wireless-2.6 (actually 'for-jgarzik')
Quoted 6 lines · John W. Linville
Jeff,
I branched off netdev-2.6#upstream, pulled my upstream into it, and resolved the conflicts. So, you probably want to pull from here instead:
Quoted 6 lines
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitfor-jgarzikFWIW, this also includes the patches from the pull request posted on 27 March 2007:
http://marc.info/?l=linux-wireless&m=117514552402407&w=2
pulled
Quoted 7 lines · John W. Linville
The following changes since commit
a21bd69e1509b43823c317c3bf3f7ffa99884356:
Linus Torvalds (1):Linux 2.6.21-rc6are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream-fixes
pulled