Commit 02567aa6 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: rename strHiddenNetwork to avoid camelCase

Fix 'Avoid camelCase' issue found by checkpatch.pl script.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Reviewed-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65fa72d3
...@@ -584,7 +584,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) ...@@ -584,7 +584,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
u32 i; u32 i;
s32 ret = 0; s32 ret = 0;
u8 au8ScanChanList[MAX_NUM_SCANNED_NETWORKS]; u8 au8ScanChanList[MAX_NUM_SCANNED_NETWORKS];
struct hidden_network strHiddenNetwork; struct hidden_network hidden_ntwk;
struct wilc_vif *vif; struct wilc_vif *vif;
priv = wiphy_priv(wiphy); priv = wiphy_priv(wiphy);
...@@ -602,21 +602,21 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) ...@@ -602,21 +602,21 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
au8ScanChanList[i] = (u8)ieee80211_frequency_to_channel(request->channels[i]->center_freq); au8ScanChanList[i] = (u8)ieee80211_frequency_to_channel(request->channels[i]->center_freq);
if (request->n_ssids >= 1) { if (request->n_ssids >= 1) {
strHiddenNetwork.net_info = hidden_ntwk.net_info =
kmalloc_array(request->n_ssids, kmalloc_array(request->n_ssids,
sizeof(struct hidden_network), sizeof(struct hidden_network),
GFP_KERNEL); GFP_KERNEL);
if (!strHiddenNetwork.net_info) if (!hidden_ntwk.net_info)
return -ENOMEM; return -ENOMEM;
strHiddenNetwork.n_ssids = request->n_ssids; hidden_ntwk.n_ssids = request->n_ssids;
for (i = 0; i < request->n_ssids; i++) { for (i = 0; i < request->n_ssids; i++) {
if (request->ssids[i].ssid_len != 0) { if (request->ssids[i].ssid_len != 0) {
strHiddenNetwork.net_info[i].ssid = kmalloc(request->ssids[i].ssid_len, GFP_KERNEL); hidden_ntwk.net_info[i].ssid = kmalloc(request->ssids[i].ssid_len, GFP_KERNEL);
memcpy(strHiddenNetwork.net_info[i].ssid, request->ssids[i].ssid, request->ssids[i].ssid_len); memcpy(hidden_ntwk.net_info[i].ssid, request->ssids[i].ssid, request->ssids[i].ssid_len);
strHiddenNetwork.net_info[i].ssid_len = request->ssids[i].ssid_len; hidden_ntwk.net_info[i].ssid_len = request->ssids[i].ssid_len;
} else { } else {
strHiddenNetwork.n_ssids -= 1; hidden_ntwk.n_ssids -= 1;
} }
} }
ret = wilc_scan(vif, USER_SCAN, ACTIVE_SCAN, ret = wilc_scan(vif, USER_SCAN, ACTIVE_SCAN,
...@@ -624,7 +624,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) ...@@ -624,7 +624,7 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
request->n_channels, request->n_channels,
(const u8 *)request->ie, (const u8 *)request->ie,
request->ie_len, CfgScanResult, request->ie_len, CfgScanResult,
(void *)priv, &strHiddenNetwork); (void *)priv, &hidden_ntwk);
} else { } else {
ret = wilc_scan(vif, USER_SCAN, ACTIVE_SCAN, ret = wilc_scan(vif, USER_SCAN, ACTIVE_SCAN,
au8ScanChanList, au8ScanChanList,
......
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