diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-08-21 16:00:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-08-21 16:00:21 -0400 |
commit | 01e17dacd47101ad7d33152bbfbbd4394352d2e6 (patch) | |
tree | d94706b87fcad04d08a46a9b3555396d21ab41ec /drivers/net/wireless/p54 | |
parent | 22c5649eef0fc37532e20c14d2656b28ca708a69 (diff) | |
parent | dcf33963c48e1959c83fda84e336dbb000eefa3f (diff) |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Conflicts:
drivers/net/wireless/mac80211_hwsim.c
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/lmac.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/p54/main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/p54/txrx.c | 15 |
3 files changed, 13 insertions, 8 deletions
diff --git a/drivers/net/wireless/p54/lmac.h b/drivers/net/wireless/p54/lmac.h index 3d8d622bec55..de1d46bf97df 100644 --- a/drivers/net/wireless/p54/lmac.h +++ b/drivers/net/wireless/p54/lmac.h | |||
@@ -526,7 +526,9 @@ int p54_init_leds(struct p54_common *priv); | |||
526 | void p54_unregister_leds(struct p54_common *priv); | 526 | void p54_unregister_leds(struct p54_common *priv); |
527 | 527 | ||
528 | /* xmit functions */ | 528 | /* xmit functions */ |
529 | void p54_tx_80211(struct ieee80211_hw *dev, struct sk_buff *skb); | 529 | void p54_tx_80211(struct ieee80211_hw *dev, |
530 | struct ieee80211_tx_control *control, | ||
531 | struct sk_buff *skb); | ||
530 | int p54_tx_cancel(struct p54_common *priv, __le32 req_id); | 532 | int p54_tx_cancel(struct p54_common *priv, __le32 req_id); |
531 | void p54_tx(struct p54_common *priv, struct sk_buff *skb); | 533 | void p54_tx(struct p54_common *priv, struct sk_buff *skb); |
532 | 534 | ||
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 7cffea795ad2..5e91ad06dd5d 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
@@ -158,7 +158,7 @@ static int p54_beacon_update(struct p54_common *priv, | |||
158 | * to cancel the old beacon template by hand, instead the firmware | 158 | * to cancel the old beacon template by hand, instead the firmware |
159 | * will release the previous one through the feedback mechanism. | 159 | * will release the previous one through the feedback mechanism. |
160 | */ | 160 | */ |
161 | p54_tx_80211(priv->hw, beacon); | 161 | p54_tx_80211(priv->hw, NULL, beacon); |
162 | priv->tsf_high32 = 0; | 162 | priv->tsf_high32 = 0; |
163 | priv->tsf_low32 = 0; | 163 | priv->tsf_low32 = 0; |
164 | 164 | ||
diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c index f38786e02623..5861e13a6fd8 100644 --- a/drivers/net/wireless/p54/txrx.c +++ b/drivers/net/wireless/p54/txrx.c | |||
@@ -676,8 +676,9 @@ int p54_rx(struct ieee80211_hw *dev, struct sk_buff *skb) | |||
676 | EXPORT_SYMBOL_GPL(p54_rx); | 676 | EXPORT_SYMBOL_GPL(p54_rx); |
677 | 677 | ||
678 | static void p54_tx_80211_header(struct p54_common *priv, struct sk_buff *skb, | 678 | static void p54_tx_80211_header(struct p54_common *priv, struct sk_buff *skb, |
679 | struct ieee80211_tx_info *info, u8 *queue, | 679 | struct ieee80211_tx_info *info, |
680 | u32 *extra_len, u16 *flags, u16 *aid, | 680 | struct ieee80211_sta *sta, |
681 | u8 *queue, u32 *extra_len, u16 *flags, u16 *aid, | ||
681 | bool *burst_possible) | 682 | bool *burst_possible) |
682 | { | 683 | { |
683 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | 684 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; |
@@ -746,8 +747,8 @@ static void p54_tx_80211_header(struct p54_common *priv, struct sk_buff *skb, | |||
746 | } | 747 | } |
747 | } | 748 | } |
748 | 749 | ||
749 | if (info->control.sta) | 750 | if (sta) |
750 | *aid = info->control.sta->aid; | 751 | *aid = sta->aid; |
751 | break; | 752 | break; |
752 | } | 753 | } |
753 | } | 754 | } |
@@ -767,7 +768,9 @@ static u8 p54_convert_algo(u32 cipher) | |||
767 | } | 768 | } |
768 | } | 769 | } |
769 | 770 | ||
770 | void p54_tx_80211(struct ieee80211_hw *dev, struct sk_buff *skb) | 771 | void p54_tx_80211(struct ieee80211_hw *dev, |
772 | struct ieee80211_tx_control *control, | ||
773 | struct sk_buff *skb) | ||
771 | { | 774 | { |
772 | struct p54_common *priv = dev->priv; | 775 | struct p54_common *priv = dev->priv; |
773 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 776 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
@@ -784,7 +787,7 @@ void p54_tx_80211(struct ieee80211_hw *dev, struct sk_buff *skb) | |||
784 | u8 nrates = 0, nremaining = 8; | 787 | u8 nrates = 0, nremaining = 8; |
785 | bool burst_allowed = false; | 788 | bool burst_allowed = false; |
786 | 789 | ||
787 | p54_tx_80211_header(priv, skb, info, &queue, &extra_len, | 790 | p54_tx_80211_header(priv, skb, info, control->sta, &queue, &extra_len, |
788 | &hdr_flags, &aid, &burst_allowed); | 791 | &hdr_flags, &aid, &burst_allowed); |
789 | 792 | ||
790 | if (p54_tx_qos_accounting_alloc(priv, skb, queue)) { | 793 | if (p54_tx_qos_accounting_alloc(priv, skb, queue)) { |