]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: scan command preparation failure handling
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 21 Mar 2014 02:50:06 +0000 (19:50 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 31 Mar 2014 17:47:40 +0000 (13:47 -0400)
commitd87a52566c94282cc2efd5beee45f257d30cf606
tree0fd54b5b2c643dc332e213ec9b827ac28d83a164
parentd7170fce8bd59c043e33d417646bd9beb8d71bea
mwifiex: scan command preparation failure handling

When scan request is received, scan commands are prepared and
queued into scan pending queue. There is a corner case when
command nodes are full. So we stop queueing further scan
commands and return an error. This patch makes sure that
currently queued commands in scan pending queue are also freed
in this case.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/scan.c