From: Dmitry Shmidt Date: Tue, 30 Aug 2011 23:31:45 +0000 (-0700) Subject: net: wireless: bcmdhd: Turn Off packet filtering for dhcp session X-Git-Tag: 2.1b_release~2317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fdaf333b80d84c495aaa95cfa3e6e614940c085;p=kernel%2Fkernel-mfld-blackbay.git net: wireless: bcmdhd: Turn Off packet filtering for dhcp session Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/wl_android.c b/drivers/net/wireless/bcmdhd/wl_android.c index d6471d9..cefa7f9 100644 --- a/drivers/net/wireless/bcmdhd/wl_android.c +++ b/drivers/net/wireless/bcmdhd/wl_android.c @@ -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);