Please pull 'upstream-davem' branch of wireless-2.6
Subsystems (4)
Dave,
Some more stuff for 2.6.24...
Individual patches here:
http://www.kernel.org/pub/linux/kernel/people/linville/wireless-2.6/upstream-davem/
I hope you had a nice time in .eu! :-)
John
P.S. Jeff, there is a one-line change to rtl8187 in there too...
---
The following changes since commit c36c8b002265e1abb25d372556d6df738f6515c0:
Ivo van Doorn (1):
[RFKILL]: Add rfkill documentation
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream-davem
Johannes Berg (10):
mac80211: remove spy wext ioctls
mac80211: don't send invalid QoS frames
mac80211: fix race conditions with keys
mac80211: remove turbo modes
mac80211: rework hardware crypto flags
mac80211: remove set_key_idx callback
mac80211: some more documentation
mac80211: remove HW_KEY_IDX_INVALID
mac80211: remove TKIP mixing for hw accel again
mac80211: remove/change some comments about Michael MIC hardware offload
Stephen Hemminger (1):
mac80211: use internal network device stats
Tomas Winkler (1):
mac80211: PS mode fix
Volker Braun (1):
mac80211: ignore key index on pairwise key (WEP only)
warmcat (1):
mac80211: get STA after tx radiotap snipped
drivers/net/wireless/rtl8187_dev.c | 3 +- include/net/mac80211.h | 215 +++++++++++++++++++----------------- net/mac80211/debugfs.c | 2 - net/mac80211/ieee80211.c | 32 +----- net/mac80211/ieee80211_common.h | 2 - net/mac80211/ieee80211_i.h | 2 - net/mac80211/ieee80211_ioctl.c | 94 ++++++++++++---- net/mac80211/ieee80211_sta.c | 19 +--- net/mac80211/key.c | 51 +++++---- net/mac80211/regdomain.c | 6 - net/mac80211/rx.c | 82 +++++++------- net/mac80211/tx.c | 69 +++++++++--- net/mac80211/util.c | 11 +-- net/mac80211/wpa.c | 60 +++-------- 14 files changed, 328 insertions(+), 320 deletions(-)
drivers/net/wireless/rtl8187_dev.c +1 -2
@@ -605,8 +605,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf, priv->modes[1 ].channels = priv->channels; priv->mode =IEEE80211_IF_TYPE_MGMT ; dev->flags =IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | -IEEE80211_HW_RX_INCLUDES_FCS | -IEEE80211_HW_WEP_INCLUDE_IV ; +IEEE80211_HW_RX_INCLUDES_FCS ; dev->extra_tx_headroom =sizeof (struct rtl8187_tx_hdr ); dev->queues =1 ; dev->max_rssi =65 ;
include/net/mac80211.h +116 -99
338 lines not on this page · raw message
net/mac80211/debugfs.c +0 -2
@@ -28,8 +28,6 @@ static const char *ieee80211_mode_str(int mode)return "IEEE 802.11b" ;case MODE_IEEE80211G :return "IEEE 802.11g" ; -case MODE_ATHEROS_TURBO : -return "Atheros Turbo (5 GHz)" ;default :return "UNKNOWN" ; }
net/mac80211/ieee80211.c +5 -27
@@ -47,13 +47,6 @@ struct ieee80211_tx_status_rtap_hdr {/* common interface routines */ -static struct net_device_stats *ieee80211_get_stats (struct net_device *dev) -{ -struct ieee80211_sub_if_data *sdata; - sdata =IEEE80211_DEV_TO_SUB_IF (dev); -return &(sdata->stats); -} -static int header_parse_80211 (struct sk_buff *skb,unsigned char *haddr) {memcpy (haddr,skb_mac_header (skb) +10 ,ETH_ALEN );/* addr2 */
@@ -118,10 +111,6 @@ ieee80211_fill_frame_info(struct ieee80211_local *local,case MODE_IEEE80211G : fi->phytype =htonl (ieee80211_phytype_pbcc_dot11_g);break ; -case MODE_ATHEROS_TURBO : - fi->phytype = -htonl (ieee80211_phytype_dsss_dot11_turbo); -break ;default : fi->phytype =htonl (0xAAAAAAAA );break ;
@@ -172,11 +161,9 @@ ieee80211_rx_mgmt(struct ieee80211_local *local, struct sk_buff *skb, {struct ieee80211_frame_info *fi;const size_t hlen =sizeof (struct ieee80211_frame_info ); -struct ieee80211_sub_if_data *sdata; +struct net_device *dev = local->apdev; - skb->dev = local->apdev; - - sdata =IEEE80211_DEV_TO_SUB_IF (local->apdev); + skb->dev = dev;if (skb_headroom (skb) < hlen) {I802_DEBUG_INC (local->rx_expand_skb_head);
@@ -191,8 +178,8 @@ ieee80211_rx_mgmt(struct ieee80211_local *local, struct sk_buff *skb,ieee80211_fill_frame_info (local, fi, status); fi->msg_type =htonl (msg_type); - sdata->stats.rx_packets++; - sdata->stats.rx_bytes += skb->len; + dev->stats.rx_packets++; + dev->stats.rx_bytes += skb->len;skb_set_mac_header (skb,0 ); skb->ip_summed =CHECKSUM_UNNECESSARY ;
@@ -273,7 +260,6 @@ void ieee80211_if_mgmt_setup(struct net_device *dev)ether_setup (dev); dev->hard_start_xmit = ieee80211_mgmt_start_xmit; dev->change_mtu = ieee80211_change_mtu_apdev; - dev->get_stats = ieee80211_get_stats; dev->open = ieee80211_mgmt_open; dev->stop = ieee80211_mgmt_stop; dev->type =ARPHRD_IEEE80211_PRISM ;
@@ -603,7 +589,6 @@ void ieee80211_if_setup(struct net_device *dev) dev->wireless_handlers = &ieee80211_iw_handler_def; dev->set_multicast_list = ieee80211_set_multicast_list; dev->change_mtu = ieee80211_change_mtu; - dev->get_stats = ieee80211_get_stats; dev->open = ieee80211_open; dev->stop = ieee80211_stop; dev->uninit = ieee80211_if_reinit;
@@ -1225,7 +1210,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, local->long_retry_limit =4 ; local->hw.conf.radio_enabled =1 ; - local->enabled_modes = (unsigned int )-1 ; + local->enabled_modes = ~0 ;INIT_LIST_HEAD (&local->modes_list);
@@ -1465,13 +1450,6 @@ void ieee80211_free_hw(struct ieee80211_hw *hw) }EXPORT_SYMBOL (ieee80211_free_hw); -struct net_device_stats *ieee80211_dev_stats (struct net_device *dev) -{ -struct ieee80211_sub_if_data *sdata; - sdata =IEEE80211_DEV_TO_SUB_IF (dev); -return &sdata->stats; -} -static int __init ieee80211_init (void ) {struct sk_buff *skb;
net/mac80211/ieee80211_common.h +0 -2
@@ -73,8 +73,6 @@ enum ieee80211_phytype { ieee80211_phytype_ofdm_dot11_g =6 , ieee80211_phytype_pbcc_dot11_g =7 , ieee80211_phytype_ofdm_dot11_a = 8, - ieee80211_phytype_dsss_dot11_turbog =255 , - ieee80211_phytype_dsss_dot11_turbo = 256, }; enum ieee80211_ssi_type {
net/mac80211/ieee80211_i.h +0 -2
@@ -301,7 +301,6 @@ struct ieee80211_sub_if_data {unsigned int flags; -struct net_device_stats stats;int drop_unencrypted;int eapol;/* 0 = process EAPOL frames as normal data frames, * 1 = send EAPOL frames through wlan#ap to hostapd
@@ -723,7 +722,6 @@ void ieee80211_tx_set_iswep(struct ieee80211_txrx_data *tx);int ieee80211_if_update_wds (struct net_device *dev,u8 *remote_addr);void ieee80211_if_setup (struct net_device *dev);void ieee80211_if_mgmt_setup (struct net_device *dev); -struct net_device_stats *ieee80211_dev_stats (struct net_device *dev);struct ieee80211_rate *ieee80211_get_rate (struct ieee80211_local *local,int phymode,int hwrate); void ieee80211_key_threshold_notify(struct net_device *dev,
net/mac80211/ieee80211_ioctl.c +71 -23
166 lines not on this page · raw message
net/mac80211/ieee80211_sta.c +1 -18
@@ -618,8 +618,6 @@ static void ieee80211_send_assoc(struct net_device *dev, *pos++ = len;for (i =0 ; i < len; i++) {int rate = mode->rates[i].rate; -if (mode->mode ==MODE_ATHEROS_TURBO ) - rate /=2 ; *pos++ = (u8) (rate /5 ); }
@@ -629,8 +627,6 @@ static void ieee80211_send_assoc(struct net_device *dev, *pos++ = mode->num_rates - len;for (i = len; i < mode->num_rates; i++) {int rate = mode->rates[i].rate; -if (mode->mode ==MODE_ATHEROS_TURBO ) - rate /=2 ; *pos++ = (u8) (rate /5 ); } }
@@ -889,10 +885,7 @@ static void ieee80211_send_probe_req(struct net_device *dev, u8 *dst, pos =skb_put (skb,1 ); supp_rates[1 ]++; } -if (mode->mode ==MODE_ATHEROS_TURBO ) - *pos = rate->rate /10 ; -else - *pos = rate->rate /5 ; + *pos = rate->rate /5 ; }ieee80211_sta_tx (dev, skb,0 );
@@ -1285,16 +1278,12 @@ static void ieee80211_rx_mgmt_assoc_resp(struct net_device *dev, mode = local->oper_hw_mode;for (i =0 ; i < elems.supp_rates_len; i++) {int rate = (elems.supp_rates[i] &0x7f ) *5 ; -if (mode->mode ==MODE_ATHEROS_TURBO ) - rate *=2 ;for (j =0 ; j < mode->num_rates; j++)if (mode->rates[j].rate == rate) rates |=BIT (j); }for (i =0 ; i < elems.ext_supp_rates_len; i++) {int rate = (elems.ext_supp_rates[i] &0x7f ) *5 ; -if (mode->mode ==MODE_ATHEROS_TURBO ) - rate *=2 ;for (j =0 ; j < mode->num_rates; j++)if (mode->rates[j].rate == rate) rates |=BIT (j);
@@ -1514,8 +1503,6 @@ static void ieee80211_rx_bss_info(struct net_device *dev, rate = elems.ext_supp_rates [i - elems.supp_rates_len]; own_rate =5 * (rate &0x7f ); -if (mode->mode ==MODE_ATHEROS_TURBO ) - own_rate *=2 ;for (j =0 ; j < num_rates; j++)if (rates[j].rate == own_rate) supp_rates |=BIT (j);
@@ -2344,8 +2331,6 @@ static int ieee80211_sta_join_ibss(struct net_device *dev, mode = local->oper_hw_mode;for (i =0 ; i < bss->supp_rates_len; i++) {int bitrate = (bss->supp_rates[i] &0x7f ) *5 ; -if (mode->mode ==MODE_ATHEROS_TURBO ) - bitrate *=2 ;for (j =0 ; j < mode->num_rates; j++)if (mode->rates[j].rate == bitrate) rates |=BIT (j);
@@ -2418,8 +2403,6 @@ static int ieee80211_sta_create_ibss(struct net_device *dev, pos = bss->supp_rates;for (i =0 ; i < mode->num_rates; i++) {int rate = mode->rates[i].rate; -if (mode->mode ==MODE_ATHEROS_TURBO ) - rate /=2 ; *pos++ = (u8) (rate /5 ); }
net/mac80211/key.c +27 -24
125 lines not on this page · raw message
net/mac80211/regdomain.c +0 -6
@@ -82,12 +82,6 @@ static void ieee80211_unmask_channel(int mode, struct ieee80211_channel *chan) chan->flag =0 ; -if (ieee80211_regdom ==64 && - (mode ==MODE_ATHEROS_TURBO || mode ==MODE_ATHEROS_TURBOG )) { -/* Do not allow Turbo modes in Japan. */ -return ; - } -for (i =0 ; channel_range[i].start_freq; i++) {const struct ieee80211_channel_range *r = &channel_range[i];if (r->start_freq <= chan->freq && r->end_freq >= chan->freq) {
net/mac80211/rx.c +42 -40
213 lines not on this page · raw message
net/mac80211/tx.c +50 -19
173 lines not on this page · raw message
net/mac80211/util.c +1 -10
@@ -93,11 +93,6 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,if (rate->rate ==10 || rate->rate ==20 ) rate->flags |=IEEE80211_RATE_BASIC ;break ; -case MODE_ATHEROS_TURBO : -if (rate->rate ==120 || rate->rate ==240 || - rate->rate ==480 ) - rate->flags |=IEEE80211_RATE_BASIC ; -break ;case MODE_IEEE80211G :if (rate->rate ==10 || rate->rate ==20 || rate->rate ==55 || rate->rate ==110 )
@@ -116,8 +111,6 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,if (rate->rate ==10 ) rate->flags |=IEEE80211_RATE_MANDATORY ;break ; -case MODE_ATHEROS_TURBO : -break ;case MODE_IEEE80211G : if (rate->rate == 10 || rate->rate == 20 || rate->rate == 55 || rate->rate == 110 ||
@@ -273,8 +266,7 @@ int ieee80211_frame_duration(struct ieee80211_local *local, size_t len,* DIV_ROUND_UP() operations. */ -if (local->hw.conf.phymode ==MODE_IEEE80211A || erp || - local->hw.conf.phymode ==MODE_ATHEROS_TURBO ) { +if (local->hw.conf.phymode ==MODE_IEEE80211A || erp) {/* * OFDM: *
@@ -288,7 +280,6 @@ int ieee80211_frame_duration(struct ieee80211_local *local, size_t len,* 802.11g - 19.8.4: aSIFSTime = 10 usec + * signal ext = 6 usec */ -/* FIX: Atheros Turbo may have different (shorter) duration? */ dur =16 ;/* SIFS + signal ext */ dur +=16 ;/* 17.3.2.3: T_PREAMBLE = 16 usec */ dur +=4 ;/* 17.3.2.3: T_SIGNAL = 4 usec */
net/mac80211/wpa.c +14 -46
126 lines not on this page · raw message
Signature · 2 lines
John W. Linville [email protected]