net: wireless: bcmdhd: Turn Off packet filtering for dhcp session
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 30 Aug 2011 23:31:45 +0000 (16:31 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Wed, 31 Aug 2011 17:24:43 +0000 (10:24 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_android.c

index d6471d991065bab443be460669124fc5268b395a..cefa7f9cbd393294a1a80ff6dd8a8f5d5805c1ae 100644 (file)
@@ -448,6 +448,12 @@ int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
        }
        else if (strnicmp(command, CMD_BTCOEXMODE, strlen(CMD_BTCOEXMODE)) == 0) {
                /* TBD: BTCOEXMODE */
+               uint mode = *(command + strlen(CMD_BTCOEXMODE) + 1) - '0';
+
+               if (mode == 1)
+                       net_os_set_packet_filter(net, 0); /* DHCP starts */
+               else
+                       net_os_set_packet_filter(net, 1); /* DHCP ends */
        }
        else if (strnicmp(command, CMD_SETSUSPENDOPT, strlen(CMD_SETSUSPENDOPT)) == 0) {
                bytes_written = wl_android_set_suspendopt(net, command, priv_cmd.total_len);