]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: Reduce endian conversion for REG Host Commands
authorPrasun Maiti <prasunmaiti87@gmail.com>
Mon, 27 Jun 2016 10:13:22 +0000 (15:43 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Jul 2016 19:32:35 +0000 (22:32 +0300)
commit8cfb86003dbfbe7341574fef02c96b97cbd63997
tree2946b4aec9ca2025a43b6981d71b940b4ff57bdf
parent2186f6eec2739ecd3944f9278e59edf0474f207c
mwifiex: Reduce endian conversion for REG Host Commands

For multiple REG Host Commands (e.g HostCmd_CMD_802_11_EEPROM_ACCESS,
HostCmd_CMD_MAC_REG_ACCESS etc.) "cpu_to_leX"-converted values are
saved to driver. So, "leX_to_cpu" conversion is required too many
times afterwards in driver.

This patch reduces the endian: conversion without saving "cpu_to_leX"
converted values in driver. This will convert endianness in prepare
command and command response path.

Signed-off-by: Prasun Maiti <prasunmaiti87@gmail.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/ioctl.h
drivers/net/wireless/marvell/mwifiex/sta_cmd.c
drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c