l2_packet_ndis.c (209158) | l2_packet_ndis.c (214734) |
---|---|
1/* 2 * WPA Supplicant - Layer2 packet handling with Microsoft NDISUIO 3 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * --- 123 unchanged lines hidden (view full) --- 132 &written, o); 133 os_free(eth); 134 } 135 136 if (!res) { 137 DWORD err = GetLastError(); 138#ifndef _WIN32_WCE 139 if (err == ERROR_IO_PENDING) { | 1/* 2 * WPA Supplicant - Layer2 packet handling with Microsoft NDISUIO 3 * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * --- 123 unchanged lines hidden (view full) --- 132 &written, o); 133 os_free(eth); 134 } 135 136 if (!res) { 137 DWORD err = GetLastError(); 138#ifndef _WIN32_WCE 139 if (err == ERROR_IO_PENDING) { |
140 /* For now, just assume that the packet will be sent in 141 * time before the next write happens. This could be 142 * cleaned up at some point to actually wait for 143 * completion before starting new writes. 144 */ | 140 wpa_printf(MSG_DEBUG, "L2(NDISUIO): Wait for pending " 141 "write to complete"); 142 res = GetOverlappedResult( 143 driver_ndis_get_ndisuio_handle(), &overlapped, 144 &written, TRUE); 145 if (!res) { 146 wpa_printf(MSG_DEBUG, "L2(NDISUIO): " 147 "GetOverlappedResult failed: %d", 148 (int) GetLastError()); 149 return -1; 150 } |
145 return 0; 146 } 147#endif /* _WIN32_WCE */ 148 wpa_printf(MSG_DEBUG, "L2(NDISUIO): WriteFile failed: %d", 149 (int) GetLastError()); 150 return -1; 151 } 152 --- 364 unchanged lines hidden --- | 151 return 0; 152 } 153#endif /* _WIN32_WCE */ 154 wpa_printf(MSG_DEBUG, "L2(NDISUIO): WriteFile failed: %d", 155 (int) GetLastError()); 156 return -1; 157 } 158 --- 364 unchanged lines hidden --- |