mwifiex: Fix unalignment access for casting variables

The main scenario that run into unaligned access problem is
casting variable of diffrent lengths/size.
This can be prevented by the use of accessor functions
get_unaligned_le*() and put_unaligned_le*().
This patch make use of above accessor functions during casting of
variables in mwifiex driver

Signed-off-by: Karthik D A <>

Change-Id: I4e4c0ca9c32a6de388b960c61563d5eb66310ac1
7 files changed