From: Dmitry Shmidt Date: Tue, 27 Nov 2012 20:57:32 +0000 (-0800) Subject: net: wireless: bcmdhd: Increase PNO wakelock to 7 sec X-Git-Tag: firefly_0821_release~7613^2~14 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0f8090817812a32b610404b5743d91af0f1a25e2;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Increase PNO wakelock to 7 sec Change-Id: Ife7bac08d16e19b37d16f697e4ad9765ca6efbb7 Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index 1630c4727917..bf6d85554ede 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -1527,14 +1527,14 @@ dhd_rx_frame(dhd_pub_t *dhdp, int ifidx, void *pktbuf, int numpkt, uint8 chan) wl_event_to_host_order(&event); if (!tout_ctrl) tout_ctrl = DHD_PACKET_TIMEOUT_MS; - if (event.event_type == WLC_E_BTA_HCI_EVENT) { - dhd_bta_doevt(dhdp, data, event.datalen); - } #ifdef PNO_SUPPORT if (event.event_type == WLC_E_PFN_NET_FOUND) { - tout_ctrl *= 2; + tout_ctrl = 7 * DHD_PACKET_TIMEOUT_MS; } #endif /* PNO_SUPPORT */ + if (event.event_type == WLC_E_BTA_HCI_EVENT) { + dhd_bta_doevt(dhdp, data, event.datalen); + } } else { tout_rx = DHD_PACKET_TIMEOUT_MS; }