Skip to content
Permalink
Browse files

Separated broadcast and multicast packets.

Assigned these two kind of packets to different queues for 8964.

Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed Jan 26, 2018
1 parent 75fbac0 commit 2b99e150f954944d17607004416e1f2321a73510
Showing with 6 additions and 6 deletions.
  1. +6 −6 hif/pcie/tx_ndp.c
@@ -511,6 +511,7 @@ void pcie_tx_xmit_ndp(struct ieee80211_hw *hw,
struct ieee80211_sta *sta;
struct mwl_sta *sta_info;
struct ieee80211_hdr *wh;
u8 *da;
u16 qos;
u8 tid = 0;
struct mwl_ampdu_stream *stream = NULL;
@@ -624,16 +625,15 @@ void pcie_tx_xmit_ndp(struct ieee80211_hw *hw,
spin_unlock_bh(&priv->stream_lock);
}

if (is_multicast_ether_addr(ieee80211_get_DA(wh))
da = ieee80211_get_DA(wh);

if (is_multicast_ether_addr(da)
&& (mwl_vif->macid != SYSADPT_NUM_OF_AP)) {
u8 dhcp_op;
u8 client[ETH_ALEN];

tx_que_priority = mwl_vif->macid * SYSADPT_MAX_TID;

if (utils_is_dhcp(skb->data, true, &dhcp_op, client))
if (dhcp_op == DHCPOFFER)
tx_que_priority += 7;
if (da[ETH_ALEN - 1] == 0xff)
tx_que_priority += 7;

if (ieee80211_has_a4(wh->frame_control)) {
if (sta && sta_info->wds)

4 comments on commit 2b99e15

@thagabe

This comment has been minimized.

Copy link

thagabe replied Jan 26, 2018

Can this also work on 8864? I have Wrt3200ACm running as the router but im using wrt1900ac as a dumb ap that would definitely benefit from multicast/broadcast separation.

@yuhhaurlin

This comment has been minimized.

Copy link
Collaborator Author

yuhhaurlin replied Jan 26, 2018

There is no need for 8864 to do this kind of thing.

@thagabe

This comment has been minimized.

Copy link

thagabe replied Jan 26, 2018

Care to give us an explanation?

@yuhhaurlin

This comment has been minimized.

Copy link
Collaborator Author

yuhhaurlin replied Jan 26, 2018

Firmware design is not the same.

Please sign in to comment.
You can’t perform that action at this time.