diff options
| -rw-r--r-- | drivers/net/wireless/ti/wl1251/acx.c | 8 | ||||
| -rw-r--r-- | drivers/net/wireless/ti/wl1251/tx.c | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl1251/acx.c b/drivers/net/wireless/ti/wl1251/acx.c index 4205970494de..5a4ec56c83d0 100644 --- a/drivers/net/wireless/ti/wl1251/acx.c +++ b/drivers/net/wireless/ti/wl1251/acx.c | |||
| @@ -847,12 +847,18 @@ int wl1251_acx_rate_policies(struct wl1251 *wl) | |||
| 847 | return -ENOMEM; | 847 | return -ENOMEM; |
| 848 | 848 | ||
| 849 | /* configure one default (one-size-fits-all) rate class */ | 849 | /* configure one default (one-size-fits-all) rate class */ |
| 850 | acx->rate_class_cnt = 1; | 850 | acx->rate_class_cnt = 2; |
| 851 | acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; | 851 | acx->rate_class[0].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; |
| 852 | acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT; | 852 | acx->rate_class[0].short_retry_limit = ACX_RATE_RETRY_LIMIT; |
| 853 | acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT; | 853 | acx->rate_class[0].long_retry_limit = ACX_RATE_RETRY_LIMIT; |
| 854 | acx->rate_class[0].aflags = 0; | 854 | acx->rate_class[0].aflags = 0; |
| 855 | 855 | ||
| 856 | /* no-retry rate class */ | ||
| 857 | acx->rate_class[1].enabled_rates = ACX_RATE_MASK_UNSPECIFIED; | ||
| 858 | acx->rate_class[1].short_retry_limit = 0; | ||
| 859 | acx->rate_class[1].long_retry_limit = 0; | ||
| 860 | acx->rate_class[1].aflags = 0; | ||
| 861 | |||
| 856 | ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); | 862 | ret = wl1251_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); |
| 857 | if (ret < 0) { | 863 | if (ret < 0) { |
| 858 | wl1251_warning("Setting of rate policies failed: %d", ret); | 864 | wl1251_warning("Setting of rate policies failed: %d", ret); |
diff --git a/drivers/net/wireless/ti/wl1251/tx.c b/drivers/net/wireless/ti/wl1251/tx.c index b91ea24bcedb..81de83c6fcf6 100644 --- a/drivers/net/wireless/ti/wl1251/tx.c +++ b/drivers/net/wireless/ti/wl1251/tx.c | |||
| @@ -90,8 +90,12 @@ static void wl1251_tx_control(struct tx_double_buffer_desc *tx_hdr, | |||
| 90 | /* 802.11 packets */ | 90 | /* 802.11 packets */ |
| 91 | tx_hdr->control.packet_type = 0; | 91 | tx_hdr->control.packet_type = 0; |
| 92 | 92 | ||
| 93 | if (control->flags & IEEE80211_TX_CTL_NO_ACK) | 93 | /* Also disable retry and ACK policy for injected packets */ |
| 94 | if ((control->flags & IEEE80211_TX_CTL_NO_ACK) || | ||
| 95 | (control->flags & IEEE80211_TX_CTL_INJECTED)) { | ||
| 96 | tx_hdr->control.rate_policy = 1; | ||
| 94 | tx_hdr->control.ack_policy = 1; | 97 | tx_hdr->control.ack_policy = 1; |
| 98 | } | ||
| 95 | 99 | ||
| 96 | tx_hdr->control.tx_complete = 1; | 100 | tx_hdr->control.tx_complete = 1; |
| 97 | 101 | ||
| @@ -422,6 +426,7 @@ static void wl1251_tx_packet_cb(struct wl1251 *wl, | |||
| 422 | info = IEEE80211_SKB_CB(skb); | 426 | info = IEEE80211_SKB_CB(skb); |
| 423 | 427 | ||
| 424 | if (!(info->flags & IEEE80211_TX_CTL_NO_ACK) && | 428 | if (!(info->flags & IEEE80211_TX_CTL_NO_ACK) && |
| 429 | !(info->flags & IEEE80211_TX_CTL_INJECTED) && | ||
| 425 | (result->status == TX_SUCCESS)) | 430 | (result->status == TX_SUCCESS)) |
| 426 | info->flags |= IEEE80211_TX_STAT_ACK; | 431 | info->flags |= IEEE80211_TX_STAT_ACK; |
| 427 | 432 | ||
