Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150156
b: refs/heads/master
c: 97d3f45
h: refs/heads/master
v: v3
  • Loading branch information
Gábor Stefanik authored and John W. Linville committed May 6, 2009
1 parent 715a92d commit 53f1cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 514d65c18ee3595f7f9c9132895ed449f911ecd4
refs/heads/master: 97d3f458a1e3350dfcbdc3b6aefa75d20d59ee17
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1568,12 +1568,13 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
struct ath_rate_priv *ath_rc_priv = priv_sta;
__le16 fc = hdr->frame_control;

/* lowest rate for management and multicast/broadcast frames */
if (!ieee80211_is_data(fc) || is_multicast_ether_addr(hdr->addr1) ||
!sta) {
/* lowest rate for management and NO_ACK frames */
if (!ieee80211_is_data(fc) ||
tx_info->flags & IEEE80211_TX_CTL_NO_ACK || !sta) {
tx_info->control.rates[0].idx = rate_lowest_index(sband, sta);
tx_info->control.rates[0].count =
is_multicast_ether_addr(hdr->addr1) ? 1 : ATH_MGT_TXMAXTRY;
(tx_info->flags & IEEE80211_TX_CTL_NO_ACK) ?
1 : ATH_MGT_TXMAXTRY;
return;
}

Expand Down

0 comments on commit 53f1cf5

Please sign in to comment.