staging: brcm80211: remove fullmac module_param for packet filter feature
authorFranky Lin <frankyl@broadcom.com>
Fri, 16 Sep 2011 19:27:53 +0000 (12:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Sep 2011 19:39:40 +0000 (21:39 +0200)
Use constant values for packet filter configuration

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/dhd.h
drivers/staging/brcm80211/brcmfmac/dhd_common.c
drivers/staging/brcm80211/brcmfmac/dhd_linux.c

index c35134904ad6c7629b6430adb3b77f0162e19faa..329851ca43b48cccbbd4c17c1d19d4f0e231cefc 100644 (file)
@@ -673,15 +673,6 @@ extern uint brcmf_arp_mode;
 /* ARP offload enable */
 extern uint brcmf_arp_enable;
 
-/* Pkt filte enable control */
-extern uint brcmf_pkt_filter_enable;
-
-/*  Pkt filter init setup */
-extern uint brcmf_pkt_filter_init;
-
-/* Pkt filter mode control */
-extern uint brcmf_master_mode;
-
 /* Roaming mode control */
 extern uint brcmf_roam;
 
index fd39998526af5a262f231f06c72c83fd82ddb895..5ae4a408f75b76536d5d6953422bd4d58f5d5e30 100644 (file)
@@ -865,15 +865,10 @@ int brcmf_c_preinit_ioctls(struct brcmf_pub *drvr)
        brcmf_c_arp_offload_enable(drvr, brcmf_arp_enable);
 
        /* Set up pkt filter */
-       if (brcmf_pkt_filter_enable) {
-               for (i = 0; i < drvr->pktfilter_count; i++) {
-                       brcmf_c_pktfilter_offload_set(drvr,
-                                                 drvr->pktfilter[i]);
-                       brcmf_c_pktfilter_offload_enable(drvr,
-                            drvr->pktfilter[i],
-                            brcmf_pkt_filter_init,
-                            brcmf_master_mode);
-               }
+       for (i = 0; i < drvr->pktfilter_count; i++) {
+               brcmf_c_pktfilter_offload_set(drvr, drvr->pktfilter[i]);
+               brcmf_c_pktfilter_offload_enable(drvr, drvr->pktfilter[i],
+                                                0, true);
        }
 
        brcmf_os_proto_unblock(drvr);
index 82868855c7f6aeb95f123517c030fc3dbccbdbb7..8e729d82e16c2d7f321bbd11f89977feb2d5f404 100644 (file)
@@ -98,18 +98,6 @@ module_param(brcmf_arp_mode, uint, 0);
 uint brcmf_arp_enable = true;
 module_param(brcmf_arp_enable, uint, 0);
 
-/* Global Pkt filter enable control */
-uint brcmf_pkt_filter_enable = true;
-module_param(brcmf_pkt_filter_enable, uint, 0);
-
-/*  Pkt filter init setup */
-uint brcmf_pkt_filter_init;
-module_param(brcmf_pkt_filter_init, uint, 0);
-
-/* Pkt filter mode control */
-uint brcmf_master_mode = true;
-module_param(brcmf_master_mode, uint, 0);
-
 /* Contorl fw roaming */
 uint brcmf_roam = 1;