staging: rtl8723au: rtw_cfg80211_inform_bss(): Use get_unaligned_le16()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 21 May 2014 07:37:54 +0000 (09:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 07:27:45 +0000 (16:27 +0900)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index b8f012c..f72588e 100644 (file)
@@ -289,7 +289,7 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter,
        notify_timestamp = jiffies_to_msecs(jiffies) * 1000;    /* uSec */
 
        notify_interval =
-           le16_to_cpu(*(u16 *)
+               get_unaligned_le16(
                        rtw_get_beacon_interval23a_from_ie(pnetwork->network.IEs));
        notify_capability =
                get_unaligned_le16(