extern void brcmf_wait_for_event(dhd_pub_t *dhd, bool * lockvar);
extern void brcmf_wait_event_wakeup(dhd_pub_t *dhd);
-#ifdef PKT_FILTER_SUPPORT
extern void brcmf_c_pktfilter_offload_set(dhd_pub_t *dhd, char *arg);
extern void brcmf_c_pktfilter_offload_enable(dhd_pub_t *dhd, char *arg,
int enable, int master_mode);
-#endif
#ifdef BCMDBG
#define ASSERT(exp) \
uint bcn_timeout = 3;
int scan_assoc_time = 40;
int scan_unassoc_time = 40;
+ int i;
#ifdef GET_CUSTOM_MAC_ENABLE
int ret = 0;
u8 ea_addr[ETH_ALEN];
brcmf_c_arp_offload_set(dhd, brcmf_arp_mode);
brcmf_c_arp_offload_enable(dhd, brcmf_arp_enable);
-#ifdef PKT_FILTER_SUPPORT
- {
- int i;
- /* Set up pkt filter */
- if (brcmf_pkt_filter_enable) {
- for (i = 0; i < dhd->pktfilter_count; i++) {
- brcmf_c_pktfilter_offload_set(dhd,
- dhd->pktfilter[i]);
- brcmf_c_pktfilter_offload_enable(dhd,
- dhd->pktfilter[i],
- brcmf_pkt_filter_init,
- brcmf_master_mode);
- }
+ /* Set up pkt filter */
+ if (brcmf_pkt_filter_enable) {
+ for (i = 0; i < dhd->pktfilter_count; i++) {
+ brcmf_c_pktfilter_offload_set(dhd,
+ dhd->pktfilter[i]);
+ brcmf_c_pktfilter_offload_enable(dhd,
+ dhd->pktfilter[i],
+ brcmf_pkt_filter_init,
+ brcmf_master_mode);
}
}
-#endif /* PKT_FILTER_SUPPORT */
brcmf_os_proto_unblock(dhd);
static void brcmf_set_packet_filter(int value, dhd_pub_t *dhd)
{
-#ifdef PKT_FILTER_SUPPORT
DHD_TRACE(("%s: %d\n", __func__, value));
/* 1 - Enable packet filter, only allow unicast packet to send up */
/* 0 - Disable packet filter */
value, brcmf_master_mode);
}
}
-#endif
}
#if defined(CONFIG_HAS_EARLYSUSPEND)