]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: improvements in mwifiex_ret_tx_power_cfg()
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 22 Oct 2013 22:24:47 +0000 (15:24 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 19:32:31 +0000 (14:32 -0500)
commit07fd6fbe5894827a32d1d4a8d56023e2b300137f
tree88f3989ecd6b1dc97e5548b017143bd5cfb5163f
parent2e3d1b9d5d23ea1cf807081c4f9072e8cdefb666
mwifiex: improvements in mwifiex_ret_tx_power_cfg()

1) Move common code out of switch case handling
2) Return from the function if number of bytes left in response buffer
are less than tlv size
3) Pass pg_tlv_hdr directly instead of txp_cfg to mwifiex_get_power_level()

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/sta_cmdresp.c