]> 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)
commitd84749ece0c44e2954479fbf3eb5093c9228ab16
tree0fd54b5b2c643dc332e213ec9b827ac28d83a164
parentb8e9f6fcba5b907db43daa78b561af1cab4c372c
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