Commit 03ed9089 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: fix line over 80 char in handle_scan()

Fix 'line over 80 character' issue reported by checkpatch.pl script in
handle_scan().
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 3e488a95
...@@ -771,6 +771,7 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info) ...@@ -771,6 +771,7 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info)
u8 valuesize = 0; u8 valuesize = 0;
u8 *hdn_ntwk_wid_val = NULL; u8 *hdn_ntwk_wid_val = NULL;
struct host_if_drv *hif_drv = vif->hif_drv; struct host_if_drv *hif_drv = vif->hif_drv;
struct hidden_network *hidden_net = &scan_info->hidden_network;
hif_drv->usr_scan_req.scan_result = scan_info->result; hif_drv->usr_scan_req.scan_result = scan_info->result;
hif_drv->usr_scan_req.arg = scan_info->arg; hif_drv->usr_scan_req.arg = scan_info->arg;
...@@ -793,19 +794,20 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info) ...@@ -793,19 +794,20 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info)
wid_list[index].id = (u16)WID_SSID_PROBE_REQ; wid_list[index].id = (u16)WID_SSID_PROBE_REQ;
wid_list[index].type = WID_STR; wid_list[index].type = WID_STR;
for (i = 0; i < scan_info->hidden_network.n_ssids; i++) for (i = 0; i < hidden_net->n_ssids; i++)
valuesize += ((scan_info->hidden_network.net_info[i].ssid_len) + 1); valuesize += ((hidden_net->net_info[i].ssid_len) + 1);
hdn_ntwk_wid_val = kmalloc(valuesize + 1, GFP_KERNEL); hdn_ntwk_wid_val = kmalloc(valuesize + 1, GFP_KERNEL);
wid_list[index].val = hdn_ntwk_wid_val; wid_list[index].val = hdn_ntwk_wid_val;
if (wid_list[index].val) { if (wid_list[index].val) {
buffer = wid_list[index].val; buffer = wid_list[index].val;
*buffer++ = scan_info->hidden_network.n_ssids; *buffer++ = hidden_net->n_ssids;
for (i = 0; i < scan_info->hidden_network.n_ssids; i++) { for (i = 0; i < hidden_net->n_ssids; i++) {
*buffer++ = scan_info->hidden_network.net_info[i].ssid_len; *buffer++ = hidden_net->net_info[i].ssid_len;
memcpy(buffer, scan_info->hidden_network.net_info[i].ssid, scan_info->hidden_network.net_info[i].ssid_len); memcpy(buffer, hidden_net->net_info[i].ssid,
buffer += scan_info->hidden_network.net_info[i].ssid_len; hidden_net->net_info[i].ssid_len);
buffer += hidden_net->net_info[i].ssid_len;
} }
wid_list[index].size = (s32)(valuesize + 1); wid_list[index].size = (s32)(valuesize + 1);
...@@ -833,7 +835,7 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info) ...@@ -833,7 +835,7 @@ static s32 handle_scan(struct wilc_vif *vif, struct scan_attr *scan_info)
for (i = 0; i < scan_info->ch_list_len; i++) { for (i = 0; i < scan_info->ch_list_len; i++) {
if (scan_info->ch_freq_list[i] > 0) if (scan_info->ch_freq_list[i] > 0)
scan_info->ch_freq_list[i] = scan_info->ch_freq_list[i] - 1; scan_info->ch_freq_list[i] -= 1;
} }
} }
......
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