Please pull 'upstream' branch of wireless-2.6.git
Subsystems (4)
The following changes since commit 7c250413e5b7c3dfae89354725b70c76d7621395:
Al Viro:
pata_pdc2027x iomem annotations
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream
Daniel Drake:
WE-21 for zd1211rw
softmac: Update MAINTAINERS entry
Jean Tourrilhes:
WE-21 for airo
WE-21 for atmel
WE-21 for hostap
WE-21 for ipw2100
WE-21 for orinoco
WE-21 for Prism54
WE-21 for ray_cs
WE-21 for wl3501
WE-21 for zd1201
WE-21 for ipw2200
John W. Linville:
WE-21 support (core API)
Larry Finger:
bcm43xx: WE-21 support
bcm43xx-softmac: update PHY initialization
bcm43xx-softmac: update noise handling
bcm43xx-softmac: improve wrong firmware message
bcm43xx: fix netdev watchdog timeouts
Ulrich Kunitz:
zd1211rw: 16-bit writes for physical control registers
zd1211rw: Removes wrong assertions
zd1211rw: Added workqueue
zd1211rw: Add LED support
MAINTAINERS | 1 drivers/net/wireless/airo.c | 19 ++-- drivers/net/wireless/atmel.c | 18 ++-- drivers/net/wireless/bcm43xx/bcm43xx.h | 1 drivers/net/wireless/bcm43xx/bcm43xx_main.c | 10 +- drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 15 +-- drivers/net/wireless/bcm43xx/bcm43xx_wx.c | 2 drivers/net/wireless/bcm43xx/bcm43xx_xmit.c | 5 - drivers/net/wireless/hostap/hostap_ioctl.c | 10 +- drivers/net/wireless/ipw2100.c | 14 +-- drivers/net/wireless/ipw2200.c | 16 +-- drivers/net/wireless/orinoco.c | 10 +- drivers/net/wireless/prism54/isl_ioctl.c | 16 ++- drivers/net/wireless/ray_cs.c | 2 drivers/net/wireless/wl3501_cs.c | 6 + drivers/net/wireless/zd1201.c | 2 drivers/net/wireless/zd1211rw/zd_chip.c | 137 +++++++++++---------------- drivers/net/wireless/zd1211rw/zd_chip.h | 23 +++-- drivers/net/wireless/zd1211rw/zd_mac.c | 50 ++++++++++ drivers/net/wireless/zd1211rw/zd_mac.h | 5 + drivers/net/wireless/zd1211rw/zd_netdev.c | 2 drivers/net/wireless/zd1211rw/zd_usb.c | 10 ++ drivers/net/wireless/zd1211rw/zd_usb.h | 2 include/linux/netdevice.h | 1 include/linux/wireless.h | 24 ++++- net/core/net-sysfs.c | 5 - net/core/wireless.c | 67 ++++++++----- net/ieee80211/softmac/ieee80211softmac_wx.c | 8 +- 28 files changed, 274 insertions(+), 207 deletions(-)
MAINTAINERS +0 -1
@@ -2655,7 +2655,6 @@ M: [email protected] P: Daniel Drake M: [email protected] W: http://softmac.sipsolutions.net/ -L: [email protected] L: [email protected] S: Maintained
drivers/net/wireless/airo.c +10 -9
@@ -5868,7 +5868,7 @@ static int airo_set_essid(struct net_devint index = (dwrq->flags &IW_ENCODE_INDEX ) -1 ;/* Check the size of the string */ -if (dwrq->length >IW_ESSID_MAX_SIZE +1 ) { +if (dwrq->length >IW_ESSID_MAX_SIZE ) {return -E2BIG ; }/* Check if index is valid */
@@ -5880,7 +5880,7 @@ static int airo_set_essid(struct net_devmemset (SSID_rid.ssids[index].ssid,0 ,sizeof (SSID_rid.ssids[index].ssid));memcpy (SSID_rid.ssids[index].ssid, extra, dwrq->length); - SSID_rid.ssids[index].len = dwrq->length -1 ; + SSID_rid.ssids[index].len = dwrq->length; } SSID_rid.len =sizeof (SSID_rid);/* Write it to the card */
@@ -5990,7 +5990,7 @@ static int airo_set_nick(struct net_devistruct airo_info *local = dev->priv;/* Check the size of the string */ -if (dwrq->length >16 +1 ) { +if (dwrq->length >16 ) {return -E2BIG ; }readConfigRid (local,1 );
@@ -6015,7 +6015,7 @@ static int airo_get_nick(struct net_devireadConfigRid (local,1 );strncpy (extra, local->config.nodeName,16 ); extra[16 ] ='\0' ; - dwrq->length =strlen (extra) +1 ; + dwrq->length =strlen (extra);return 0 ; }
@@ -6767,9 +6767,9 @@ static int airo_set_retry(struct net_dev }readConfigRid (local,1 );if (vwrq->flags &IW_RETRY_LIMIT ) { -if (vwrq->flags &IW_RETRY_MAX ) +if (vwrq->flags &IW_RETRY_LONG ) local->config.longRetryLimit = vwrq->value; -else if (vwrq->flags &IW_RETRY_MIN ) +else if (vwrq->flags &IW_RETRY_SHORT ) local->config.shortRetryLimit = vwrq->value;else {/* No modifier : set both */
@@ -6805,14 +6805,14 @@ static int airo_get_retry(struct net_devif ((vwrq->flags &IW_RETRY_TYPE ) ==IW_RETRY_LIFETIME ) { vwrq->flags =IW_RETRY_LIFETIME ; vwrq->value = (int )local->config.txLifetime *1024 ; - }else if ((vwrq->flags &IW_RETRY_MAX )) { - vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; + }else if ((vwrq->flags &IW_RETRY_LONG )) { + vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; vwrq->value = (int )local->config.longRetryLimit; }else { vwrq->flags =IW_RETRY_LIMIT ; vwrq->value = (int )local->config.shortRetryLimit;if ((int )local->config.shortRetryLimit != (int )local->config.longRetryLimit) - vwrq->flags |=IW_RETRY_MIN ; + vwrq->flags |=IW_RETRY_SHORT ; }return 0 ;
@@ -6990,6 +6990,7 @@ static int airo_set_power(struct net_dev local->config.rmode |=RXMODE_BC_MC_ADDR ;set_bit (FLAG_COMMIT , &local->flags);case IW_POWER_ON : +/* This is broken, fixme ;-) */ break ;default :return -EINVAL ;
drivers/net/wireless/atmel.c +9 -9
@@ -1656,13 +1656,13 @@ static int atmel_set_essid(struct net_de priv->connect_to_any_BSS =0 ;/* Check the size of the string */ -if (dwrq->length >MAX_SSID_LENGTH +1 ) +if (dwrq->length >MAX_SSID_LENGTH )return -E2BIG ;if (index !=0 )return -EINVAL ; -memcpy (priv->new_SSID, extra, dwrq->length -1 ); - priv->new_SSID_size = dwrq->length -1 ; +memcpy (priv->new_SSID, extra, dwrq->length); + priv->new_SSID_size = dwrq->length; }return -EINPROGRESS ;
@@ -2120,9 +2120,9 @@ static int atmel_set_retry(struct net_destruct atmel_private *priv =netdev_priv (dev);if (!vwrq->disabled && (vwrq->flags &IW_RETRY_LIMIT )) { -if (vwrq->flags &IW_RETRY_MAX ) +if (vwrq->flags &IW_RETRY_LONG ) priv->long_retry = vwrq->value; -else if (vwrq->flags &IW_RETRY_MIN ) +else if (vwrq->flags &IW_RETRY_SHORT ) priv->short_retry = vwrq->value;else {/* No modifier : set both */
@@ -2144,15 +2144,15 @@ static int atmel_get_retry(struct net_de vwrq->disabled =0 ;/* Can't be disabled */ -/* Note : by default, display the min retry number */ -if (vwrq->flags &IW_RETRY_MAX ) { - vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; +/* Note : by default, display the short retry number */ +if (vwrq->flags &IW_RETRY_LONG ) { + vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; vwrq->value = priv->long_retry; }else { vwrq->flags =IW_RETRY_LIMIT ; vwrq->value = priv->short_retry;if (priv->long_retry != priv->short_retry) - vwrq->flags |=IW_RETRY_MIN ; + vwrq->flags |=IW_RETRY_SHORT ; }return 0 ;
drivers/net/wireless/bcm43xx/bcm43xx.h +0 -1
@@ -666,7 +666,6 @@ struct bcm43xx_noise_calculation { };struct bcm43xx_stats { -u8 link_quality;u8 noise;struct iw_statistics wstats;/* Store the last TX/RX times here for updating the leds. */
drivers/net/wireless/bcm43xx/bcm43xx_main.c +5 -5
@@ -2405,9 +2405,10 @@ static int bcm43xx_chip_init(struct bcm4 BCM43xx_UCODE_TIME) & 0x1f);if ( value16 >0x128 ) { - dprintk(KERN_ERR PFX - "Firmware: no support for microcode rev > 0x128\n"); - err =-1 ; + printk(KERN_ERR PFX +"Firmware: no support for microcode extracted " + "from version 4.x binary drivers.\n"); + err = -EOPNOTSUPP ; goto err_release_fw; }
@@ -3169,8 +3170,7 @@ static void bcm43xx_periodic_work_handle* be preemtible. */ mutex_lock (&bcm->mutex); -netif_stop_queue (bcm->net_dev); -synchronize_net (); +netif_tx_disable (bcm->net_dev);spin_lock_irqsave (&bcm->irq_lock, flags);bcm43xx_mac_suspend (bcm);if (bcm43xx_using_pio (bcm))
drivers/net/wireless/bcm43xx/bcm43xx_phy.c +7 -8
@@ -361,7 +361,7 @@ static void bcm43xx_phy_setupg(struct bcif (phy->rev <=2 )for (i =0 ; i < BCM43xx_ILT_NOISESCALEG_SIZE; i++)bcm43xx_ilt_write (bcm,0x1400 + i, bcm43xx_ilt_noisescaleg1[i]); -else if ((phy->rev ==7 ) && (bcm43xx_phy_read (bcm,0x0449 ) &0x0200 )) +else if ((phy->rev >=7 ) && (bcm43xx_phy_read (bcm,0x0449 ) &0x0200 ))for (i =0 ; i < BCM43xx_ILT_NOISESCALEG_SIZE; i++)bcm43xx_ilt_write (bcm,0x1400 + i, bcm43xx_ilt_noisescaleg3[i]);else
@@ -371,7 +371,7 @@ static void bcm43xx_phy_setupg(struct bcif (phy->rev ==2 )for (i =0 ; i < BCM43xx_ILT_SIGMASQR_SIZE; i++)bcm43xx_ilt_write (bcm,0x5000 + i, bcm43xx_ilt_sigmasqr1[i]); -else if ((phy->rev >2 ) && (phy->rev <=7 )) +else if ((phy->rev >2 ) && (phy->rev <=8 ))for (i =0 ; i < BCM43xx_ILT_SIGMASQR_SIZE; i++)bcm43xx_ilt_write (bcm,0x5000 + i, bcm43xx_ilt_sigmasqr2[i]);
@@ -1197,7 +1197,7 @@ static void bcm43xx_phy_initg(struct bcmif (phy->rev ==1 )bcm43xx_phy_initb5 (bcm); -else if (phy->rev >=2 && phy->rev <=7 ) +else bcm43xx_phy_initb6 (bcm);if (phy->rev >=2 || phy->connected)bcm43xx_phy_inita (bcm);
@@ -1241,23 +1241,22 @@ static void bcm43xx_phy_initg(struct bcmbcm43xx_phy_lo_g_measure (bcm); }else {if (radio->version ==0x2050 && radio->revision ==8 ) { -//FIXME +bcm43xx_radio_write16 (bcm,0x0052 , + (radio->txctl1 <<4 ) | radio->txctl2); }else {bcm43xx_radio_write16 (bcm,0x0052 , (bcm43xx_radio_read16 (bcm,0x0052 ) &0xFFF0 ) | radio->txctl1); }if (phy->rev >=6 ) { -/* bcm43xx_phy_write (bcm,0x0036 , (bcm43xx_phy_read (bcm,0x0036 ) -& 0xF000) | (FIXME << 12)); -*/ + &0xF000 ) | (radio->txctl2 <<12 )); }if (bcm->sprom.boardflags & BCM43xx_BFL_PACTRL)bcm43xx_phy_write (bcm,0x002E ,0x8075 );else -bcm43xx_phy_write (bcm,0x003E ,0x807F ); +bcm43xx_phy_write (bcm,0x002E ,0x807F );if (phy->rev <2 )bcm43xx_phy_write (bcm,0x002F ,0x0101 );else
drivers/net/wireless/bcm43xx/bcm43xx_wx.c +1 -1
@@ -334,7 +334,7 @@ static int bcm43xx_wx_get_nick(struct nesize_t len;mutex_lock (&bcm->mutex); - len =strlen (bcm->nick) +1 ; + len =strlen (bcm->nick);memcpy (extra, bcm->nick, len); data->data.length = (__u16 )len; data->data.flags =1 ;
drivers/net/wireless/bcm43xx/bcm43xx_xmit.c +2 -3
@@ -496,15 +496,14 @@ int bcm43xx_rx(struct bcm43xx_private *b stats.signal =bcm43xx_rssi_postprocess (bcm, rxhdr->rssi, is_ofdm, !!(rxflags1 & BCM43xx_RXHDR_FLAGS1_2053RSSIADJ), !!(rxflags3 & BCM43xx_RXHDR_FLAGS3_2050RSSIADJ)); -//TODO stats.noise = + stats.noise = bcm->stats.noise;if (is_ofdm) stats.rate =bcm43xx_plcp_get_bitrate_ofdm (plcp);else stats.rate =bcm43xx_plcp_get_bitrate_cck (plcp); stats.received_channel = radio->channel; -//TODO stats.control = stats.mask =IEEE80211_STATMASK_SIGNAL | -//TODO IEEE80211_STATMASK_NOISE | +IEEE80211_STATMASK_NOISE |IEEE80211_STATMASK_RATE |IEEE80211_STATMASK_RSSI ;if (phy->type == BCM43xx_PHYTYPE_A)
drivers/net/wireless/hostap/hostap_ioctl.c +5 -5
@@ -1412,9 +1412,9 @@ #if 0/* what could be done, if firmware would support this.. */ if (rrq->flags &IW_RETRY_LIMIT ) { -if (rrq->flags &IW_RETRY_MAX ) +if (rrq->flags &IW_RETRY_LONG )HFA384X_RID_LONGRETRYLIMIT = rrq->value; -else if (rrq->flags &IW_RETRY_MIN ) +else if (rrq->flags &IW_RETRY_SHORT )HFA384X_RID_SHORTRETRYLIMIT = rrq->value;else {HFA384X_RID_LONGRETRYLIMIT = rrq->value;
@@ -1468,14 +1468,14 @@ static int prism2_ioctl_giwretry(struct rrq->value =le16_to_cpu (altretry); else rrq->value = local->manual_retry_count; - }else if ((rrq->flags &IW_RETRY_MAX )) { - rrq->flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; + }else if ((rrq->flags &IW_RETRY_LONG )) { + rrq->flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; rrq->value = longretry; }else { rrq->flags =IW_RETRY_LIMIT ; rrq->value = shortretry;if (shortretry != longretry) - rrq->flags |=IW_RETRY_MIN ; + rrq->flags |=IW_RETRY_SHORT ; } }return 0 ;
drivers/net/wireless/ipw2100.c +7 -7
@@ -6958,7 +6958,7 @@ static int ipw2100_wx_set_essid(struct n }if (wrqu->essid.flags && wrqu->essid.length) { - length = wrqu->essid.length -1 ; + length = wrqu->essid.length; essid = extra; }
@@ -7051,7 +7051,7 @@ static int ipw2100_wx_get_nick(struct nestruct ipw2100_priv *priv =ieee80211_priv (dev); - wrqu->data.length =strlen (priv->nick) +1 ; + wrqu->data.length =strlen (priv->nick);memcpy (extra, priv->nick, wrqu->data.length); wrqu->data.flags =1 ;/* active */
@@ -7343,14 +7343,14 @@ static int ipw2100_wx_set_retry(struct n goto done; } -if (wrqu->retry.flags &IW_RETRY_MIN ) { +if (wrqu->retry.flags &IW_RETRY_SHORT ) { err =ipw2100_set_short_retry (priv, wrqu->retry.value);IPW_DEBUG_WX ("SET Short Retry Limit -> %d \n" , wrqu->retry.value); goto done; } -if (wrqu->retry.flags &IW_RETRY_MAX ) { +if (wrqu->retry.flags &IW_RETRY_LONG ) { err =ipw2100_set_long_retry (priv, wrqu->retry.value);IPW_DEBUG_WX ("SET Long Retry Limit -> %d \n" , wrqu->retry.value);
@@ -7383,14 +7383,14 @@ static int ipw2100_wx_get_retry(struct nif ((wrqu->retry.flags &IW_RETRY_TYPE ) ==IW_RETRY_LIFETIME )return -EINVAL ; -if (wrqu->retry.flags &IW_RETRY_MAX ) { - wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; +if (wrqu->retry.flags &IW_RETRY_LONG ) { + wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; wrqu->retry.value = priv->long_retry_limit; }else { wrqu->retry.flags = (priv->short_retry_limit != priv->long_retry_limit) ? -IW_RETRY_LIMIT |IW_RETRY_MIN :IW_RETRY_LIMIT ; +IW_RETRY_LIMIT |IW_RETRY_SHORT :IW_RETRY_LIMIT ; wrqu->retry.value = priv->short_retry_limit; }
drivers/net/wireless/ipw2200.c +7 -9
@@ -8875,8 +8875,6 @@ static int ipw_wx_set_essid(struct net_d } length =min ((int )wrqu->essid.length,IW_ESSID_MAX_SIZE ); -if (!extra[length -1 ]) - length--; priv->config |=CFG_STATIC_ESSID ;
@@ -8953,7 +8951,7 @@ static int ipw_wx_get_nick(struct net_destruct ipw_priv *priv =ieee80211_priv (dev);IPW_DEBUG_WX ("Getting nick\n" );mutex_lock (&priv->mutex); - wrqu->data.length =strlen (priv->nick) +1 ; + wrqu->data.length =strlen (priv->nick);memcpy (extra, priv->nick, wrqu->data.length); wrqu->data.flags =1 ;/* active */ mutex_unlock (&priv->mutex);
@@ -9276,9 +9274,9 @@ static int ipw_wx_set_retry(struct net_dreturn -EINVAL ;mutex_lock (&priv->mutex); -if (wrqu->retry.flags &IW_RETRY_MIN ) +if (wrqu->retry.flags &IW_RETRY_SHORT ) priv->short_retry_limit = (u8 ) wrqu->retry.value; -else if (wrqu->retry.flags &IW_RETRY_MAX ) +else if (wrqu->retry.flags &IW_RETRY_LONG ) priv->long_retry_limit = (u8 ) wrqu->retry.value;else { priv->short_retry_limit = (u8 ) wrqu->retry.value;
@@ -9307,11 +9305,11 @@ static int ipw_wx_get_retry(struct net_dreturn -EINVAL ; } -if (wrqu->retry.flags &IW_RETRY_MAX ) { - wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; +if (wrqu->retry.flags &IW_RETRY_LONG ) { + wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; wrqu->retry.value = priv->long_retry_limit; - }else if (wrqu->retry.flags &IW_RETRY_MIN ) { - wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_MIN ; + }else if (wrqu->retry.flags &IW_RETRY_SHORT ) { + wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_SHORT ; wrqu->retry.value = priv->short_retry_limit; }else { wrqu->retry.flags =IW_RETRY_LIMIT ;
drivers/net/wireless/orinoco.c +5 -5
@@ -3037,7 +3037,7 @@ static int orinoco_ioctl_getessid(struct } erq->flags =1 ; - erq->length =strlen (essidbuf) +1 ; + erq->length =strlen (essidbuf);return 0 ; }
@@ -3078,7 +3078,7 @@ static int orinoco_ioctl_getnick(structmemcpy (nickbuf, priv->nick,IW_ESSID_MAX_SIZE +1 );orinoco_unlock (priv, &flags); - nrq->length =strlen (nickbuf)+1 ; + nrq->length =strlen (nickbuf);return 0 ; }
@@ -3575,14 +3575,14 @@ static int orinoco_ioctl_getretry(struct rrq->value = lifetime *1000 ;/* ??? */ }else {/* By default, display the min number */ -if ((rrq->flags &IW_RETRY_MAX )) { - rrq->flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; +if ((rrq->flags &IW_RETRY_LONG )) { + rrq->flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; rrq->value = long_limit; }else { rrq->flags =IW_RETRY_LIMIT ; rrq->value = short_limit;if (short_limit != long_limit) - rrq->flags |=IW_RETRY_MIN ; + rrq->flags |=IW_RETRY_SHORT ; } }
drivers/net/wireless/prism54/isl_ioctl.c +8 -8
@@ -742,9 +742,9 @@ prism54_set_essid(struct net_device *nde/* Check if we were asked for `any' */ if (dwrq->flags && dwrq->length) { -if (dwrq->length >min (33 ,IW_ESSID_MAX_SIZE +1 )) +if (dwrq->length >32 )return -E2BIG ; - essid.length = dwrq->length -1 ; + essid.length = dwrq->length;memcpy (essid.octets, extra, dwrq->length); }else essid.length =0 ;
@@ -814,7 +814,7 @@ prism54_get_nick(struct net_device *ndev dwrq->length =0 ;down_read (&priv->mib_sem); - dwrq->length =strlen (priv->nickname) +1 ; + dwrq->length =strlen (priv->nickname);memcpy (extra, priv->nickname, dwrq->length);up_read (&priv->mib_sem);
@@ -992,9 +992,9 @@ prism54_set_retry(struct net_device *ndereturn -EINVAL ;if (vwrq->flags &IW_RETRY_LIMIT ) { -if (vwrq->flags &IW_RETRY_MIN ) +if (vwrq->flags &IW_RETRY_SHORT ) slimit = vwrq->value; -else if (vwrq->flags &IW_RETRY_MAX ) +else if (vwrq->flags &IW_RETRY_LONG ) llimit = vwrq->value;else {/* we are asked to set both */
@@ -1035,18 +1035,18 @@ prism54_get_retry(struct net_device *ndemgt_get_request (priv,DOT11_OID_MAXTXLIFETIME ,0 ,NULL , &r); vwrq->value = r.u *1024 ; vwrq->flags =IW_RETRY_LIFETIME ; - }else if ((vwrq->flags &IW_RETRY_MAX )) { + }else if ((vwrq->flags &IW_RETRY_LONG )) {/* we are asked for the long retry limit */ rvalue |=mgt_get_request (priv,DOT11_OID_LONGRETRIES ,0 ,NULL , &r); vwrq->value = r.u; - vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; + vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; }else {/* default. get the short retry limit */ rvalue |=mgt_get_request (priv,DOT11_OID_SHORTRETRIES ,0 ,NULL , &r); vwrq->value = r.u; - vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_MIN ; + vwrq->flags =IW_RETRY_LIMIT |IW_RETRY_SHORT ; }return rvalue;
drivers/net/wireless/ray_cs.c +1 -1
@@ -1173,7 +1173,7 @@ static int ray_set_essid(struct net_devireturn -EOPNOTSUPP ; }else {/* Check the size of the string */ -if (dwrq->length >IW_ESSID_MAX_SIZE +1 ) { +if (dwrq->length >IW_ESSID_MAX_SIZE ) {return -E2BIG ; }
drivers/net/wireless/wl3501_cs.c +3 -3
@@ -1802,15 +1802,15 @@ static int wl3501_get_retry(struct net_d &retry, sizeof(retry));if (rc) goto out; -if (wrqu->retry.flags &IW_RETRY_MAX ) { - wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_MAX ; +if (wrqu->retry.flags &IW_RETRY_LONG ) { + wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_LONG ; goto set_value; } rc =wl3501_get_mib_value (this,WL3501_MIB_ATTR_SHORT_RETRY_LIMIT , &retry,sizeof (retry));if (rc) goto out; - wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_MIN ; + wrqu->retry.flags =IW_RETRY_LIMIT |IW_RETRY_SHORT ; set_value: wrqu->retry.value = retry; wrqu->retry.disabled =0 ;
drivers/net/wireless/zd1201.c +1 -1
@@ -1218,7 +1218,7 @@ static int zd1201_set_essid(struct net_dreturn -EINVAL ;if (data->length <1 ) data->length =1 ; - zd->essidlen = data->length-1 ; + zd->essidlen = data->length;memset (zd->essid,0 ,IW_ESSID_MAX_SIZE +1 );memcpy (zd->essid, essid, data->length);return zd1201_join (zd, zd->essid, zd->essidlen);
drivers/net/wireless/zd1211rw/zd_chip.c +55 -82
250 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_chip.h +14 -9
@@ -428,6 +428,7 @@ #define CR_LED CTL_REG(0x0644)/* masks for controlling LEDs */ #define LED1 0x0100#define LED2 0x0200 +#define LED_SW 0x0400/* Seems to indicate that the configuration is over. */
@@ -629,6 +630,10 @@ #define FW_LINK_STATUS FW_REG(3#define FW_SOFT_RESET FW_REG(4)#define FW_FLASH_CHK FW_REG(5) +#define FW_LINK_OFF 0x0 +#define FW_LINK_TX 0x1 +/* 0x2 - link led on? */ +enum {CR_BASE_OFFSET =0x9000 ,FW_START_OFFSET =0xee00 ,
@@ -663,8 +668,11 @@ struct zd_chip {u8 pwr_int_values[E2P_CHANNEL_COUNT ];/* SetPointOFDM in the vendor driver */ u8 ofdm_cal_values[3 ][E2P_CHANNEL_COUNT ]; - u8 pa_type:4, patch_cck_gain:1, patch_cr157:1, patch_6m_band_edge:1, - new_phy_layout:1, is_zd1211b:1; +u16 link_led; + unsigned int pa_type:4, + patch_cck_gain:1, patch_cr157:1, patch_6m_band_edge:1, + new_phy_layout:1, + is_zd1211b:1, supports_tx_led:1; };static inline struct zd_chip *zd_usb_to_chip (struct zd_usb *usb)
@@ -812,15 +820,12 @@ int zd_chip_lock_phy_regs(struct zd_chipint zd_chip_unlock_phy_regs (struct zd_chip *chip);enum led_status { -LED_OFF =0 , -LED_ON =1 , -LED_FLIP =2 , -LED_STATUS =3 , +LED_OFF =0 , +LED_SCANNING =1 , +LED_ASSOCIATED =2 , }; -int zd_chip_led_status (struct zd_chip *chip,int led,enum led_status status); -int zd_chip_led_flip (struct zd_chip *chip,int led, -const unsigned int *phases_msecs,unsigned int count); +int zd_chip_control_leds (struct zd_chip *chip,enum led_status status);int zd_set_beacon_interval (struct zd_chip *chip,u32 interval);
drivers/net/wireless/zd1211rw/zd_mac.c +50 -0
77 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_mac.h +5 -0
@@ -120,6 +120,10 @@ enum mac_flags { MAC_FIXED_CHANNEL = 0x01, }; +struct housekeeping { +struct work_struct link_led_work; +}; +#define ZD_MAC_STATS_BUFFER_SIZE 16struct zd_mac {
@@ -128,6 +132,7 @@ struct zd_mac {struct net_device *netdev;/* Unlocked reading possible */ struct iw_statistics iw_stats; +struct housekeeping housekeeping;unsigned int stats_count;u8 qual_buffer[ZD_MAC_STATS_BUFFER_SIZE ];u8 rssi_buffer[ZD_MAC_STATS_BUFFER_SIZE ];
drivers/net/wireless/zd1211rw/zd_netdev.c +1 -1
@@ -82,7 +82,7 @@ static int iw_get_nick(struct net_device union iwreq_data *req, char *extra) { strcpy(extra, "zd1211"); - req->data.length =strlen (extra) +1 ; + req->data.length =strlen (extra); req->data.flags =1 ;return 0 ; }
drivers/net/wireless/zd1211rw/zd_usb.c +10 -0
@@ -24,6 +24,7 @@ #include <linux/device.h>#include <linux/errno.h> #include <linux/skbuff.h> #include <linux/usb.h> +#include <linux/workqueue.h> #include <net/ieee80211.h> #include "zd_def.h"
@@ -1112,12 +1113,20 @@ static struct usb_driver driver = { .disconnect = disconnect, }; +struct workqueue_struct *zd_workqueue; +static int __init usb_init (void ) {int r;pr_debug ("usb_init()\n" ); + zd_workqueue =create_singlethread_workqueue (driver.name); +if (zd_workqueue ==NULL ) { +printk (KERN_ERR "%s: couldn't create workqueue\n" , driver.name); +return -ENOMEM ; + } + r =usb_register (&driver);if (r) {printk (KERN_ERR "usb_register() failed. Error number %d\n" , r);
@@ -1132,6 +1141,7 @@ static void __exit usb_exit(void) {pr_debug ("usb_exit()\n" );usb_deregister (&driver); +destroy_workqueue (zd_workqueue); }module_init (usb_init);
drivers/net/wireless/zd1211rw/zd_usb.h +2 -0
@@ -238,4 +238,6 @@ int zd_usb_iowrite16v(struct zd_usb *usbint zd_usb_rfwrite (struct zd_usb *usb,u32 value,u8 bits); +extern struct workqueue_struct *zd_workqueue; +#endif /* _ZD_USB_H */
include/linux/netdevice.h +0 -1
@@ -334,7 +334,6 @@ #define NETIF_F_ALL_CSUM (NETIF_F_IP_CSUstruct net_device_stats * (*get_stats)(struct net_device *dev); -struct iw_statistics * (*get_wireless_stats)(struct net_device *dev);/* List of functions to handle Wireless Extensions (instead of ioctl). * See <net/iw_handler.h> for details. Jean II */
include/linux/wireless.h +20 -4
@@ -1,7 +1,7 @@/* * This file define a set of standard wireless extensions * -* Version : 20 17.2.06 +* Version : 21 14.3.06 * * Authors : Jean Tourrilhes - HPL - <[email protected]> * Copyright (c) 1997-2006 Jean Tourrilhes, All Rights Reserved.
@@ -69,9 +69,14 @@ #define _LINUX_WIRELESS_H/***************************** INCLUDES *****************************/ +/* This header is used in user-space, therefore need to be sanitised +* for that purpose. Those includes are usually not compatible with glibc. +* To know which includes to use in user-space, check iwlib.h. */ +#ifdef __KERNEL__#include <linux/types.h> /* for "caddr_t" et al */ #include <linux/socket.h> /* for "struct sockaddr" et al */ #include <linux/if.h> /* for IFNAMSIZ and co... */ +#endif /* __KERNEL__ */ /***************************** VERSION *****************************/ /*
@@ -80,7 +85,7 @@ #include <linux/if.h> /* for IFNAMSIZ* (there is some stuff that will be added in the future...) * I just plan to increment with each new version. */ -#define WIRELESS_EXT 20 +#define WIRELESS_EXT 21/* * Changes :
@@ -208,6 +213,14 @@ #define WIRELESS_EXT 20* V19 to V20 * ---------- * - RtNetlink requests support (SET/GET) +* +* V20 to V21 +* ---------- +* - Remove (struct net_device *)->get_wireless_stats() +* - Change length in ESSID and NICK to strlen() instead of strlen()+1 +* - Add IW_RETRY_SHORT/IW_RETRY_LONG retry modifiers +* - Power/Retry relative values no longer * 100000 +* - Add explicit flag to tell stats are in 802.11k RCPI : IW_QUAL_RCPI */ /**************************** CONSTANTS ****************************/
@@ -448,6 +461,7 @@ #define IW_QUAL_DBM 0x08 /* Level + Noi#define IW_QUAL_QUAL_INVALID 0x10/* Driver doesn't provide value */ #define IW_QUAL_LEVEL_INVALID 0x20#define IW_QUAL_NOISE_INVALID 0x40 +#define IW_QUAL_RCPI 0x80/* Level + Noise are 802.11k RCPI */ #define IW_QUAL_ALL_INVALID 0x70/* Frequency flags */
@@ -500,10 +514,12 @@ #define IW_RETRY_ON 0x0000 /* No detail#define IW_RETRY_TYPE 0xF000/* Type of parameter */ #define IW_RETRY_LIMIT 0x1000/* Maximum number of retries*/ #define IW_RETRY_LIFETIME 0x2000/* Maximum duration of retries in us */ -#define IW_RETRY_MODIFIER 0x000F/* Modify a parameter */ +#define IW_RETRY_MODIFIER 0x00FF/* Modify a parameter */ #define IW_RETRY_MIN 0x0001/* Value is a minimum */ #define IW_RETRY_MAX 0x0002/* Value is a maximum */ #define IW_RETRY_RELATIVE 0x0004/* Value is not in seconds/ms/us */ +#define IW_RETRY_SHORT 0x0010/* Value is for short packets */ +#define IW_RETRY_LONG 0x0020/* Value is for long packets */ /* Scanning request flags */ #define IW_SCAN_DEFAULT 0x0000/* Default scan of the driver */
@@ -1017,7 +1033,7 @@ struct iw_range/* Note : this frequency list doesn't need to fit channel numbers, * because each entry contain its channel index */ -__u32 enc_capa;/* IW_ENC_CAPA_* bit field */ +__u32 enc_capa;/* IW_ENC_CAPA_* bit field */ };/*
net/core/net-sysfs.c +1 -4
@@ -344,8 +344,6 @@ static ssize_t wireless_show(struct clasif (dev->wireless_handlers && dev->wireless_handlers->get_wireless_stats) iw = dev->wireless_handlers->get_wireless_stats (dev); -else if (dev->get_wireless_stats) - iw = dev->get_wireless_stats (dev);if (iw !=NULL ) ret = (*format)(iw, buf); }
@@ -465,8 +463,7 @@ int netdev_register_sysfs(struct net_dev *groups++ = &netstat_group;#ifdef WIRELESS_EXT -if (net->get_wireless_stats - || (net->wireless_handlers && net->wireless_handlers->get_wireless_stats)) +if (net->wireless_handlers && net->wireless_handlers->get_wireless_stats) *groups++ = &wireless_group;#endif
net/core/wireless.c +41 -26
125 lines not on this page · raw message
net/ieee80211/softmac/ieee80211softmac_wx.c +4 -4
@@ -80,10 +80,10 @@ ieee80211softmac_wx_set_essid(struct net* If it's our network, ignore the change, we're already doing it! */ if ((sm->associnfo.associating || sm->associated) && - (data->essid.flags && data->essid.length && extra)) { + (data->essid.flags && data->essid.length)) {/* Get the associating network */ n =ieee80211softmac_get_network_by_bssid (sm, sm->associnfo.bssid); -if (n && n->essid.len == (data->essid.length -1 ) && +if (n && n->essid.len == data->essid.length && !memcmp (n->essid.data, extra, n->essid.len)) { dprintk(KERN_INFO PFX "Already associating or associated to "MAC_FMT"\n", MAC_ARG(sm->associnfo.bssid));
@@ -109,8 +109,8 @@ ieee80211softmac_wx_set_essid(struct net sm->associnfo.static_essid =0 ; sm->associnfo.assoc_wait =0 ; -if (data->essid.flags && data->essid.length && extra/*required?*/ ) { - length =min (data->essid.length -1 ,IW_ESSID_MAX_SIZE ); +if (data->essid.flags && data->essid.length) { + length =min ((int )data->essid.length,IW_ESSID_MAX_SIZE );if (length) {memcpy (sm->associnfo.req_essid.data, extra, length); sm->associnfo.static_essid =1 ;
Signature · 2 lines
John W. Linville [email protected]
wireless-2.6 now has a 'pending' branch (was Re: Please pull 'upstream' branch of wireless-2.6.git)
Quoted 7 lines · John W. Linville
The following changes since commit
7c250413e5b7c3dfae89354725b70c76d7621395:
Al Viro:
pata_pdc2027xiomem annotationsare found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream
It's been a little while, and for that I apologize. Work, kids, elderly relatives, blah, blah, blah... :-(
Anyway, this covers _almost_ everything I've got in my queue for pushing upstream. The exceptions are a couple of patches posted very recently which I'd like to give a chance to simmer first. That gives people a little more time to review them rather than asking me to revert them later... :-)
Anyway, I know have a "pending" branch. Patches on this branch are really only there for three reasons:
-- to let the author know I got the patch;
-- to let me know that the patch applies to the tree; and,
-- to enhance a patch's exposure for review.
I do not intend to add my "Signed-off-by:" to patches on the pending branch. This is intended to further signify (albeit subtley) that they are not yet queued for upstream. This also implies that I won't be pulling from that branch, so you shouldn't be pulling from there into your own trees either (except for the purpose of reviewing the patches, of course). I probably won't usually announce new patches in the pending branch, so feel free to check it periodically.
For now, the pending branch is just a trial intended to add more visibility to the process. Feel free to propose changes to the pending process if it does not seem to be effective. YMMV, objects in mirror may be closer than they appear, you are not expected to understand this, etc... :-)
John
P.S. Individual patches are available here (w/o using git):
http://www.kernel.org/pub/linux/kernel/people/linville/wireless-2.6/pending
---
The following changes since commit a67ab2bde752b26be75d4b68ecead9a14692eac5:
Larry Finger:
bcm43xx: fix netdev watchdog timeouts
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git pending
Daniel Drake:
ieee80211: Move IV/ICV stripping into ieee80211_rx
Larry Finger:
ieee80211: quiet TKIP and CCMP replay messages for identical TSCs
drivers/net/wireless/bcm43xx/bcm43xx_main.c | 3 + drivers/net/wireless/bcm43xx/bcm43xx_xmit.c | 19 --------- drivers/net/wireless/ipw2200.c | 48 +---------------------- include/net/ieee80211.h | 4 ++ net/ieee80211/ieee80211_crypt_ccmp.c | 2 - net/ieee80211/ieee80211_crypt_tkip.c | 2 - net/ieee80211/ieee80211_rx.c | 56 ++++++++++++++++++++++++--- 7 files changed, 61 insertions(+), 73 deletions(-)
Signature · 2 lines
John W. Linville [email protected]
pulled