Skip to content

Commit

Permalink
wireless: dhd: Enable standby ARP and multicast packet filters
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiLux authored and javilonas committed May 31, 2015
1 parent fa82e93 commit f04760e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/bcmdhd4358/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ DHDCFLAGS += -DSOFTAP_SEND_HANGEVT
DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=10

# For Passing all multicast packets to host when not in suspend mode.
DHDCFLAGS += -DPASS_ALL_MCAST_PKTS
# DHDCFLAGS += -DPASS_ALL_MCAST_PKTS

# Early suspend
DHDCFLAGS += -DDHD_USE_EARLYSUSPEND
Expand Down
4 changes: 3 additions & 1 deletion drivers/net/wireless/bcmdhd4358/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -6460,7 +6460,7 @@ dhd_preinit_ioctls(dhd_pub_t *dhd)

#ifdef CUSTOMER_HW4
#ifdef GAN_LITE_NAT_KEEPALIVE_FILTER
dhd->pktfilter_count = 4;
dhd->pktfilter_count = 5;
/* Setup filter to block broadcast and NAT Keepalive packets */
/* discard all broadcast packets */
dhd->pktfilter[DHD_UNICAST_FILTER_NUM] = "100 0 0 0 0xffffff 0xffffff";
Expand All @@ -6477,6 +6477,8 @@ dhd_preinit_ioctls(dhd_pub_t *dhd)
" "
HEX_PREF_STR ZERO_ADDR_STR ZERO_ADDR_STR ETHER_TYPE_STR ZERO_TYPE_STR;
#endif /* BLOCK_IPV6_PACKET */
/* apply APP pktfilter */
dhd->pktfilter[DHD_ARP_FILTER_NUM] = "105 0 0 12 0xFFFF 0x0806";
#ifdef PASS_IPV4_SUSPEND
dhd->pktfilter[DHD_MDNS_FILTER_NUM] = "104 0 0 0 0xFFFFFF 0x01005E";
#endif /* PASS_IPV4_SUSPEND */
Expand Down

0 comments on commit f04760e

Please sign in to comment.