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)
commitd8d13d32c4a7c6653f22c7649cd3d2d86c2eeacd
tree88f3989ecd6b1dc97e5548b017143bd5cfb5163f
parenteac40d9631a7db43570df859fa8a9922e9623607
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