diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2012-08-28 16:17:37 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-08-28 16:17:37 -0700 |
commit | ddb45c7e8572c73ba6b0367dcd27ca4e2d5bcee4 (patch) | |
tree | 53295ef618bcc331b17934cbb2874420f34c1635 /drivers/net | |
parent | d7cdb87a5ea2979a86355d05290893335bf08ea3 (diff) | |
download | kernel_samsung_crespo-ddb45c7e8572c73ba6b0367dcd27ca4e2d5bcee4.zip kernel_samsung_crespo-ddb45c7e8572c73ba6b0367dcd27ca4e2d5bcee4.tar.gz kernel_samsung_crespo-ddb45c7e8572c73ba6b0367dcd27ca4e2d5bcee4.tar.bz2 |
net: wireless: bcmdhd: Fix sending ctrl packet
- Schedule dpc thread to send ctrl frame if we cannot
send ctrl packet immediately.
Change-Id: I5ae8b705a6ccddcc1f5c86b4c094342b57d26c7f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/bcmdhd/dhd_sdio.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_sdio.c b/drivers/net/wireless/bcmdhd/dhd_sdio.c index 6049e16..09dc45a 100644 --- a/drivers/net/wireless/bcmdhd/dhd_sdio.c +++ b/drivers/net/wireless/bcmdhd/dhd_sdio.c @@ -1375,7 +1375,13 @@ dhd_bus_txctl(struct dhd_bus *bus, uchar *msg, uint msglen) /* Send from dpc */ bus->ctrl_frame_buf = frame; bus->ctrl_frame_len = len; - dhd_wait_for_event(bus->dhd, &bus->ctrl_frame_stat); + if (!bus->dpc_sched) { + bus->dpc_sched = TRUE; + dhd_sched_dpc(bus->dhd); + } + if (bus->ctrl_frame_stat) { + dhd_wait_for_event(bus->dhd, &bus->ctrl_frame_stat); + } if (bus->ctrl_frame_stat == FALSE) { DHD_INFO(("%s: ctrl_frame_stat == FALSE\n", __FUNCTION__)); ret = 0; |