Commit 390b6db0 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: renames struct connect_resp_info variables

This patch renames to avoid camelcase changes follow are:
 - pu8IEs to ies
 - u16IEsLen to ies_len
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent afb70653
...@@ -341,12 +341,11 @@ s32 wilc_parse_network_info(u8 *msg_buffer, ...@@ -341,12 +341,11 @@ s32 wilc_parse_network_info(u8 *msg_buffer,
ies_len = rx_len - (MAC_HDR_LEN + TIME_STAMP_LEN + BEACON_INTERVAL_LEN + CAP_INFO_LEN); ies_len = rx_len - (MAC_HDR_LEN + TIME_STAMP_LEN + BEACON_INTERVAL_LEN + CAP_INFO_LEN);
if (ies_len > 0) { if (ies_len > 0) {
network_info->pu8IEs = kmemdup(ies, ies_len, network_info->ies = kmemdup(ies, ies_len, GFP_KERNEL);
GFP_KERNEL); if (!network_info->ies)
if (!network_info->pu8IEs)
return -ENOMEM; return -ENOMEM;
} }
network_info->u16IEsLen = ies_len; network_info->ies_len = ies_len;
} }
*ret_network_info = network_info; *ret_network_info = network_info;
......
...@@ -90,8 +90,8 @@ struct network_info { ...@@ -90,8 +90,8 @@ struct network_info {
bool new_network; bool new_network;
u8 found; u8 found;
u32 tsf_lo; u32 tsf_lo;
u8 *pu8IEs; u8 *ies;
u16 u16IEsLen; u16 ies_len;
void *pJoinParams; void *pJoinParams;
tstrRSSI strRssi; tstrRSSI strRssi;
u64 u64Tsf; u64 u64Tsf;
......
...@@ -1410,7 +1410,7 @@ static s32 Handle_RcvdNtwrkInfo(struct wilc_vif *vif, ...@@ -1410,7 +1410,7 @@ static s32 Handle_RcvdNtwrkInfo(struct wilc_vif *vif,
pstrRcvdNetworkInfo->buffer = NULL; pstrRcvdNetworkInfo->buffer = NULL;
if (pstrNetworkInfo) { if (pstrNetworkInfo) {
kfree(pstrNetworkInfo->pu8IEs); kfree(pstrNetworkInfo->ies);
kfree(pstrNetworkInfo); kfree(pstrNetworkInfo);
} }
...@@ -4270,8 +4270,8 @@ static void *host_int_ParseJoinBssParam(struct network_info *ptstrNetworkInfo) ...@@ -4270,8 +4270,8 @@ static void *host_int_ParseJoinBssParam(struct network_info *ptstrNetworkInfo)
u8 authTotalCount = 0; u8 authTotalCount = 0;
u8 i, j; u8 i, j;
pu8IEs = ptstrNetworkInfo->pu8IEs; pu8IEs = ptstrNetworkInfo->ies;
u16IEsLen = ptstrNetworkInfo->u16IEsLen; u16IEsLen = ptstrNetworkInfo->ies_len;
pNewJoinBssParam = kzalloc(sizeof(struct join_bss_param), GFP_KERNEL); pNewJoinBssParam = kzalloc(sizeof(struct join_bss_param), GFP_KERNEL);
if (pNewJoinBssParam) { if (pNewJoinBssParam) {
......
...@@ -194,9 +194,9 @@ static void clear_shadow_scan(void) ...@@ -194,9 +194,9 @@ static void clear_shadow_scan(void)
del_timer_sync(&hAgingTimer); del_timer_sync(&hAgingTimer);
for (i = 0; i < last_scanned_cnt; i++) { for (i = 0; i < last_scanned_cnt; i++) {
if (last_scanned_shadow[last_scanned_cnt].pu8IEs) { if (last_scanned_shadow[last_scanned_cnt].ies) {
kfree(last_scanned_shadow[i].pu8IEs); kfree(last_scanned_shadow[i].ies);
last_scanned_shadow[last_scanned_cnt].pu8IEs = NULL; last_scanned_shadow[last_scanned_cnt].ies = NULL;
} }
kfree(last_scanned_shadow[i].pJoinParams); kfree(last_scanned_shadow[i].pJoinParams);
...@@ -253,8 +253,8 @@ static void refresh_scan(void *user_void, u8 all, bool direct_scan) ...@@ -253,8 +253,8 @@ static void refresh_scan(void *user_void, u8 all, bool direct_scan)
network_info->u64Tsf, network_info->u64Tsf,
network_info->cap_info, network_info->cap_info,
network_info->beacon_period, network_info->beacon_period,
(const u8 *)network_info->pu8IEs, (const u8 *)network_info->ies,
(size_t)network_info->u16IEsLen, (size_t)network_info->ies_len,
(s32)rssi * 100, (s32)rssi * 100,
GFP_KERNEL); GFP_KERNEL);
cfg80211_put_bss(wiphy, bss); cfg80211_put_bss(wiphy, bss);
...@@ -292,8 +292,8 @@ static void remove_network_from_shadow(unsigned long arg) ...@@ -292,8 +292,8 @@ static void remove_network_from_shadow(unsigned long arg)
PRINT_D(CFG80211_DBG, "Network expired ScanShadow:%s\n", PRINT_D(CFG80211_DBG, "Network expired ScanShadow:%s\n",
last_scanned_shadow[i].ssid); last_scanned_shadow[i].ssid);
kfree(last_scanned_shadow[i].pu8IEs); kfree(last_scanned_shadow[i].ies);
last_scanned_shadow[i].pu8IEs = NULL; last_scanned_shadow[i].ies = NULL;
kfree(last_scanned_shadow[i].pJoinParams); kfree(last_scanned_shadow[i].pJoinParams);
...@@ -377,14 +377,14 @@ static void add_network_to_shadow(struct network_info *pstrNetworkInfo, ...@@ -377,14 +377,14 @@ static void add_network_to_shadow(struct network_info *pstrNetworkInfo,
last_scanned_shadow[ap_index].beacon_period = pstrNetworkInfo->beacon_period; last_scanned_shadow[ap_index].beacon_period = pstrNetworkInfo->beacon_period;
last_scanned_shadow[ap_index].dtim_period = pstrNetworkInfo->dtim_period; last_scanned_shadow[ap_index].dtim_period = pstrNetworkInfo->dtim_period;
last_scanned_shadow[ap_index].ch = pstrNetworkInfo->ch; last_scanned_shadow[ap_index].ch = pstrNetworkInfo->ch;
last_scanned_shadow[ap_index].u16IEsLen = pstrNetworkInfo->u16IEsLen; last_scanned_shadow[ap_index].ies_len = pstrNetworkInfo->ies_len;
last_scanned_shadow[ap_index].u64Tsf = pstrNetworkInfo->u64Tsf; last_scanned_shadow[ap_index].u64Tsf = pstrNetworkInfo->u64Tsf;
if (ap_found != -1) if (ap_found != -1)
kfree(last_scanned_shadow[ap_index].pu8IEs); kfree(last_scanned_shadow[ap_index].ies);
last_scanned_shadow[ap_index].pu8IEs = last_scanned_shadow[ap_index].ies = kmalloc(pstrNetworkInfo->ies_len,
kmalloc(pstrNetworkInfo->u16IEsLen, GFP_KERNEL); GFP_KERNEL);
memcpy(last_scanned_shadow[ap_index].pu8IEs, memcpy(last_scanned_shadow[ap_index].ies,
pstrNetworkInfo->pu8IEs, pstrNetworkInfo->u16IEsLen); pstrNetworkInfo->ies, pstrNetworkInfo->ies_len);
last_scanned_shadow[ap_index].time_scan = jiffies; last_scanned_shadow[ap_index].time_scan = jiffies;
last_scanned_shadow[ap_index].time_scan_cached = jiffies; last_scanned_shadow[ap_index].time_scan_cached = jiffies;
last_scanned_shadow[ap_index].found = 1; last_scanned_shadow[ap_index].found = 1;
...@@ -451,8 +451,8 @@ static void CfgScanResult(enum scan_event scan_event, ...@@ -451,8 +451,8 @@ static void CfgScanResult(enum scan_event scan_event,
network_info->u64Tsf, network_info->u64Tsf,
network_info->cap_info, network_info->cap_info,
network_info->beacon_period, network_info->beacon_period,
(const u8 *)network_info->pu8IEs, (const u8 *)network_info->ies,
(size_t)network_info->u16IEsLen, (size_t)network_info->ies_len,
(s32)network_info->rssi * 100, (s32)network_info->rssi * 100,
GFP_KERNEL); GFP_KERNEL);
cfg80211_put_bss(wiphy, bss); cfg80211_put_bss(wiphy, bss);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment