staging: rtl8188eu: Use cpu_to_be32() instead of RTW_PUT_BE32()
authornavin patidar <navin.patidar@gmail.com>
Sun, 22 Jun 2014 08:36:33 +0000 (14:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:27:14 +0000 (20:27 -0400)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_p2p.c
drivers/staging/rtl8188eu/include/osdep_service.h

index 0840470..5bc1937 100644 (file)
@@ -310,7 +310,7 @@ static void issue_p2p_provision_resp(struct wifidirect_info *pwdinfo, u8 *raddr,
 
        wpsielen = 0;
        /*      WPS OUI */
-       RTW_PUT_BE32(wpsie, WPSOUI);
+       *((u32 *)(wpsie+wpsielen)) = cpu_to_be32(WPSOUI);
        wpsielen += 4;
 
        /*      Config Method */
@@ -569,8 +569,7 @@ u32 build_probe_resp_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
        p2pielen += 2;
 
        /*      OUI */
-       /* u32*) (p2pie + p2pielen) = cpu_to_be32(WPSOUI); */
-       RTW_PUT_BE32(p2pie + p2pielen, WPSOUI);
+       *((u32 *)(p2pie + p2pielen)) = cpu_to_be32(WPSOUI);
        p2pielen += 4;
 
        /*      Sub Category ID */
@@ -683,8 +682,7 @@ u32 build_prov_disc_request_p2p_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8
        p2pielen += 2;
 
        /*      OUI */
-       /* u32*) (p2pie + p2pielen) = cpu_to_be32(WPSOUI); */
-       RTW_PUT_BE32(p2pie + p2pielen, WPSOUI);
+       *((u32 *)(p2pie + p2pielen)) = cpu_to_be32(WPSOUI);
        p2pielen += 4;
 
        /*      Sub Category ID */