[PATCH 1/4] wlanapi: Add a stub for WlanScan
Bruno Jesus
00cpxxx at gmail.com
Thu Feb 9 12:12:43 CST 2017
Since WlanEnumInterfaces is now doing something applications may start crashing calling the next functions in the process to discover wireless stuff.
Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
dlls/wlanapi/main.c | 9 +++++++++
include/wlanapi.h | 14 ++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/dlls/wlanapi/main.c b/dlls/wlanapi/main.c
index 6955245..56c5377 100644
--- a/dlls/wlanapi/main.c
+++ b/dlls/wlanapi/main.c
@@ -128,6 +128,15 @@ DWORD WINAPI WlanOpenHandle(DWORD client_version, void *reserved, DWORD *negotia
return ERROR_SUCCESS;
}
+DWORD WINAPI WlanScan(HANDLE handle, const GUID *guid, const DOT11_SSID *ssid,
+ const WLAN_RAW_DATA *raw, void *reserved)
+{
+ FIXME("(%p, %s, %p, %p, %p) stub\n",
+ handle, wine_dbgstr_guid(guid), ssid, raw, reserved);
+
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
void WINAPI WlanFreeMemory(void *ptr)
{
TRACE("(%p)\n", ptr);
diff --git a/include/wlanapi.h b/include/wlanapi.h
index f6ef60d..f1e302c 100644
--- a/include/wlanapi.h
+++ b/include/wlanapi.h
@@ -45,10 +45,24 @@ typedef struct _WLAN_INTERFACE_INFO_LIST
WLAN_INTERFACE_INFO InterfaceInfo[1];
} WLAN_INTERFACE_INFO_LIST, *PWLAN_INTERFACE_INFO_LIST;
+#define DOT11_SSID_MAX_LENGTH 32
+typedef struct _DOT11_SSID
+{
+ DWORD uSSIDLength;
+ UCHAR ucSSID[DOT11_SSID_MAX_LENGTH];
+} DOT11_SSID;
+
+typedef struct _WLAN_RAW_DATA
+{
+ DWORD dwDataSize;
+ BYTE DataBlob[1];
+} WLAN_RAW_DATA, *PWLAN_RAW_DATA;
+
DWORD WINAPI WlanCloseHandle(HANDLE, void *);
DWORD WINAPI WlanEnumInterfaces(HANDLE, void *, WLAN_INTERFACE_INFO_LIST **);
DWORD WINAPI WlanOpenHandle(DWORD, void *, DWORD *, HANDLE *);
void *WINAPI WlanAllocateMemory(DWORD);
void WINAPI WlanFreeMemory(void *);
+DWORD WINAPI WlanScan(HANDLE, const GUID *, const DOT11_SSID *, const WLAN_RAW_DATA *, void *);
#endif /* _WLAN_WLANAPI_H */
--
2.9.3
More information about the wine-patches
mailing list