staging: wilc1000: use kernel provided struct cast to extract mac header
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 22 Nov 2019 20:52:04 +0000 (20:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 09:28:31 +0000 (10:28 +0100)
commita02a9897cd6dd8b8b45162c8edd02ae924382b4b
tree5f64635e04b201b92a04c7fb49bcada21704394c
parent856be41e446a6918fc665399061f4ec75b580501
staging: wilc1000: use kernel provided struct cast to extract mac header

To parse the mac header make use of *struct ieee80211_hdr* instead of
extracting individual fields separately using pointer operation.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20191122205153.30723-3-adham.abozaeid@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/netdev.c