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 b8f012cc13ef99f8ab21f33f6050c6041f0826db..f72588ef237f5eb91c5da451da75bc4e90d3eefe 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(