~ubuntu-branches/ubuntu/saucy/wpasupplicant/saucy

« back to all changes in this revision

Viewing changes to src/l2_packet/l2_packet_ndis.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2010-11-22 09:43:43 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122094343-qgsxaojvmswfri77
Tags: 0.7.3-0ubuntu1
* Get wpasupplicant 0.7.3 from Debian's SVN. Leaving 0.7.3-1 as unreleased
  for now.
* Build-Depend on debhelper 8, since the packaging from Debian uses compat 8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
                DWORD err = GetLastError();
138
138
#ifndef _WIN32_WCE
139
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
151
                        return 0;
146
152
                }
147
153
#endif /* _WIN32_WCE */