wmi.c (15e23124cea7315a5bef1c60f8368af035cd06c5) | wmi.c (6c2faf09394ceaef4efed1e44721830579f16115) |
---|---|
1/* 2 * Copyright (c) 2012 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 334 unchanged lines hidden (view full) --- 343 } 344} 345 346static void wmi_evt_scan_complete(struct wil6210_priv *wil, int id, 347 void *d, int len) 348{ 349 if (wil->scan_request) { 350 struct wmi_scan_complete_event *data = d; | 1/* 2 * Copyright (c) 2012 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 334 unchanged lines hidden (view full) --- 343 } 344} 345 346static void wmi_evt_scan_complete(struct wil6210_priv *wil, int id, 347 void *d, int len) 348{ 349 if (wil->scan_request) { 350 struct wmi_scan_complete_event *data = d; |
351 bool aborted = (data->status != 0); | 351 bool aborted = (data->status != WMI_SCAN_SUCCESS); |
352 353 wil_dbg_wmi(wil, "SCAN_COMPLETE(0x%08x)\n", data->status); 354 cfg80211_scan_done(wil->scan_request, aborted); 355 wil->scan_request = NULL; 356 } else { 357 wil_err(wil, "SCAN_COMPLETE while not scanning\n"); 358 } 359} --- 437 unchanged lines hidden (view full) --- 797{ 798 int rc; 799 800 struct wmi_pcp_start_cmd cmd = { 801 .bcon_interval = cpu_to_le16(bi), 802 .network_type = wmi_nettype, 803 .disable_sec_offload = 1, 804 .channel = chan - 1, | 352 353 wil_dbg_wmi(wil, "SCAN_COMPLETE(0x%08x)\n", data->status); 354 cfg80211_scan_done(wil->scan_request, aborted); 355 wil->scan_request = NULL; 356 } else { 357 wil_err(wil, "SCAN_COMPLETE while not scanning\n"); 358 } 359} --- 437 unchanged lines hidden (view full) --- 797{ 798 int rc; 799 800 struct wmi_pcp_start_cmd cmd = { 801 .bcon_interval = cpu_to_le16(bi), 802 .network_type = wmi_nettype, 803 .disable_sec_offload = 1, 804 .channel = chan - 1, |
805 .pcp_max_assoc_sta = WIL6210_MAX_CID, |
|
805 }; 806 struct { 807 struct wil6210_mbox_hdr_wmi wmi; 808 struct wmi_pcp_started_event evt; 809 } __packed reply; 810 811 if (!wil->secure_pcp) 812 cmd.disable_sec = 1; --- 374 unchanged lines hidden --- | 806 }; 807 struct { 808 struct wil6210_mbox_hdr_wmi wmi; 809 struct wmi_pcp_started_event evt; 810 } __packed reply; 811 812 if (!wil->secure_pcp) 813 cmd.disable_sec = 1; --- 374 unchanged lines hidden --- |