diff options
| author | David S. Miller <davem@davemloft.net> | 2010-03-19 00:18:19 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-03-19 00:18:19 -0400 |
| commit | 4227f62db38ed221a49908c224b9fa2b91dc797b (patch) | |
| tree | 19c5c8d0cbc2d2047efe7e391f449aecbc9e6cf8 | |
| parent | 0641e4fbf2f824faee00ea74c459a088d94905fd (diff) | |
| parent | c8406ea8fa1adde8dc5400127281d497bbcdb84a (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 21 | ||||
| -rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 2 | ||||
| -rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_debugfs.c | 3 |
3 files changed, 4 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index b2c8207f7bc1..294b486bc3ed 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
| @@ -1353,25 +1353,6 @@ static enum ath9k_pkt_type get_hw_packet_type(struct sk_buff *skb) | |||
| 1353 | return htype; | 1353 | return htype; |
| 1354 | } | 1354 | } |
| 1355 | 1355 | ||
| 1356 | static bool is_pae(struct sk_buff *skb) | ||
| 1357 | { | ||
| 1358 | struct ieee80211_hdr *hdr; | ||
| 1359 | __le16 fc; | ||
| 1360 | |||
| 1361 | hdr = (struct ieee80211_hdr *)skb->data; | ||
| 1362 | fc = hdr->frame_control; | ||
| 1363 | |||
| 1364 | if (ieee80211_is_data(fc)) { | ||
| 1365 | if (ieee80211_is_nullfunc(fc) || | ||
| 1366 | /* Port Access Entity (IEEE 802.1X) */ | ||
| 1367 | (skb->protocol == cpu_to_be16(ETH_P_PAE))) { | ||
| 1368 | return true; | ||
| 1369 | } | ||
| 1370 | } | ||
| 1371 | |||
| 1372 | return false; | ||
| 1373 | } | ||
| 1374 | |||
| 1375 | static int get_hw_crypto_keytype(struct sk_buff *skb) | 1356 | static int get_hw_crypto_keytype(struct sk_buff *skb) |
| 1376 | { | 1357 | { |
| 1377 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1358 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
| @@ -1696,7 +1677,7 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf, | |||
| 1696 | goto tx_done; | 1677 | goto tx_done; |
| 1697 | } | 1678 | } |
| 1698 | 1679 | ||
| 1699 | if ((tx_info->flags & IEEE80211_TX_CTL_AMPDU) && !is_pae(skb)) { | 1680 | if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) { |
| 1700 | /* | 1681 | /* |
| 1701 | * Try aggregation if it's a unicast data frame | 1682 | * Try aggregation if it's a unicast data frame |
| 1702 | * and the destination is HT capable. | 1683 | * and the destination is HT capable. |
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 1ed5206721ec..8c12311dbb0a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
| @@ -124,7 +124,7 @@ void iwl_free_tfds_in_queue(struct iwl_priv *priv, | |||
| 124 | if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed) | 124 | if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed) |
| 125 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | 125 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; |
| 126 | else { | 126 | else { |
| 127 | IWL_ERR(priv, "free more than tfds_in_queue (%u:%d)\n", | 127 | IWL_DEBUG_TX(priv, "free more than tfds_in_queue (%u:%d)\n", |
| 128 | priv->stations[sta_id].tid[tid].tfds_in_queue, | 128 | priv->stations[sta_id].tid[tid].tfds_in_queue, |
| 129 | freed); | 129 | freed); |
| 130 | priv->stations[sta_id].tid[tid].tfds_in_queue = 0; | 130 | priv->stations[sta_id].tid[tid].tfds_in_queue = 0; |
diff --git a/drivers/net/wireless/wl12xx/wl1251_debugfs.c b/drivers/net/wireless/wl12xx/wl1251_debugfs.c index 0ccba57fb9fb..05e4d68eb4cc 100644 --- a/drivers/net/wireless/wl12xx/wl1251_debugfs.c +++ b/drivers/net/wireless/wl12xx/wl1251_debugfs.c | |||
| @@ -466,7 +466,8 @@ out: | |||
| 466 | 466 | ||
| 467 | void wl1251_debugfs_reset(struct wl1251 *wl) | 467 | void wl1251_debugfs_reset(struct wl1251 *wl) |
| 468 | { | 468 | { |
| 469 | memset(wl->stats.fw_stats, 0, sizeof(*wl->stats.fw_stats)); | 469 | if (wl->stats.fw_stats != NULL) |
| 470 | memset(wl->stats.fw_stats, 0, sizeof(*wl->stats.fw_stats)); | ||
| 470 | wl->stats.retry_count = 0; | 471 | wl->stats.retry_count = 0; |
| 471 | wl->stats.excessive_retries = 0; | 472 | wl->stats.excessive_retries = 0; |
| 472 | } | 473 | } |
