]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: send firmware initialization commands synchronously
authorStone Piao <piaoyun@marvell.com>
Wed, 26 Sep 2012 03:23:39 +0000 (20:23 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Sep 2012 17:54:05 +0000 (13:54 -0400)
commit095015cb22e80e616ce36c9255346873f6d248f2
treefc3780c2238bedcf5c37c1a682c9614e2028553e
parentd882dc2a77c5d529dc97022785a9bebe0df0e3b9
mwifiex: send firmware initialization commands synchronously

The driver will send some commands to firmware during the
initialization. Currently these commands are sent asynchronously,
which means that we firstly insert all of them to a pre-allocated
command queue, and then start to process them one by one. The
command queue will soon be exhausted if we keep adding new
initialization commands.

This issue can be resolved by sending initialization commands
synchronously because each command is consumed and the buffer is
recycled before queuing next command.

Signed-off-by: Stone Piao <piaoyun@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_cmd.c