Use cpu_to_le16() insted of RTW_PUT_LE16()

Port 83a9b6694d1e300ca8240fdf654650dcc096c86f
This commit is contained in:
Carlos Garces
2021-10-20 16:42:09 +02:00
parent c832879ea1
commit 51d0819382
8 changed files with 23 additions and 44 deletions

View File

@@ -4321,7 +4321,7 @@ int rtw_rsn_sync_pmkid(_adapter *adapter, u8 *ie, uint ie_len, int i_ent)
} else
info.pmkid_cnt = 0; /* update new pmkid_cnt */
RTW_PUT_LE16(info.pmkid_list - 2, info.pmkid_cnt);
*(u16 *)(info.pmkid_list - 2) = cpu_to_le16(info.pmkid_cnt);
if (info.gmcs)
memcpy(info.pmkid_list + 16 * info.pmkid_cnt, gm_cs, 4);