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)
commit7bff9c974e1a70819c30c37d8ec0d84d456f8237
treefc3780c2238bedcf5c37c1a682c9614e2028553e
parentea021f56009207e8023c1c4ac4939be3dbe80dbf
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