Commit graph

49352 commits

Author SHA1 Message Date
Cameron Gutman 390f44b3f9 [TCPIP]
- Fix adding a static interface route

svn path=/branches/wlan-bringup/; revision=54946
2012-01-13 23:23:58 +00:00
Cameron Gutman 5335d1ce21 [DHCPCSVC]
- Adapt the reconnect hack to also enable DHCP when transitioning from static configuration to DHCP enabled via netcfgx

svn path=/branches/wlan-bringup/; revision=54945
2012-01-13 22:56:22 +00:00
Cameron Gutman ee49cc8fca [TCPIP]
- Queue a work item from the ProtocolStatus handler so we can refresh the state from the registry instead relying on hacks to track our state

svn path=/branches/wlan-bringup/; revision=54944
2012-01-13 22:38:28 +00:00
Cameron Gutman 456e73d4f5 [IPHLPAPI]
- Store the NTEContext in the IP address list so netcfgx can remove IP addresses
- Fixes routing after manually setting an IP address

svn path=/branches/wlan-bringup/; revision=54942
2012-01-13 20:55:26 +00:00
Cameron Gutman e1eb1ebd07 [IPHLPAPI]
- Fix incorrect interface indexes in the routing table returned from GetIpForwardTable

svn path=/branches/wlan-bringup/; revision=54941
2012-01-13 19:57:20 +00:00
Cameron Gutman 1e5b7c244a [TCPIP]
- Configure route NCEs to never timeout to prevent them from falling out from under the routing code
- Fix a typo
- Fix detection of duplicate routes
[NETCFGX]
- Don't delete all routes for an interface when adding a default gateway

svn path=/branches/wlan-bringup/; revision=54939
2012-01-13 18:32:30 +00:00
Cameron Gutman 8b3125261d [TCPIP]
- Fix a bug where a static IP configuration was not properly restored after a media state change

svn path=/branches/wlan-bringup/; revision=54934
2012-01-13 10:47:44 +00:00
Cameron Gutman e8b08a9dd8 [DHCPCSVC]
- Fix an issue assigning a private address after the IpReleaseAddress API was used prior to IpRenewAddress
- Move the IP refresh hack into dhcpcsvc so it now properly refresh IP information after an adapter is disconnected and reconnected (wired and wireless)
- When a state change occurs (connecting to a different wireless network or unplugging and plugging in the Ethernet cable), TCP/IP will flush routes and the neighbor cache then set the IP address to 0.0.0.0. DHCP will detect that IP address (that part is the hack since we do it via polling instead of events) then send a DHCP discover packet out via the new network connection. No more ipconfig /renew to get a new DHCP lease after network changes. It's all seamless now :D

svn path=/branches/wlan-bringup/; revision=54933
2012-01-13 10:03:38 +00:00
Cameron Gutman a8c61ab6c0 [TCPIP]
- Missed this file in r54930

svn path=/branches/wlan-bringup/; revision=54932
2012-01-13 09:45:17 +00:00
Cameron Gutman 0552bdfef6 [WLANCONF]
- Don't manually refresh IP information when connecting to a network

svn path=/branches/wlan-bringup/; revision=54931
2012-01-13 09:43:16 +00:00
Cameron Gutman a7427b3bde [TCPIP]
- Fix crash during status indication

svn path=/branches/wlan-bringup/; revision=54930
2012-01-13 09:05:53 +00:00
Cameron Gutman 1ac7212b37 [TCPIP]
- Support media state changes properly

svn path=/branches/wlan-bringup/; revision=54929
2012-01-13 07:28:16 +00:00
Cameron Gutman ff8d0071db - Remove a forgotten debug print
svn path=/branches/wlan-bringup/; revision=54916
2012-01-12 02:25:56 +00:00
Cameron Gutman 8828d269af [DHCPCSVC]
- Remove timeouts associated with the protocol in remove_protocol()

svn path=/branches/wlan-bringup/; revision=54915
2012-01-12 02:11:02 +00:00
Cameron Gutman 6a5a77ea59 [WLANCONF]
- Release the current IP address before disconnecting from an AP
- Refresh the IP information after connecting to an AP

svn path=/branches/wlan-bringup/; revision=54914
2012-01-12 01:46:15 +00:00
Cameron Gutman c4fcda78d4 [DHCPCSVC]
- Delete the existing default gateway when releasing DHCP IP or transitioning to static IP
- Fixes bug #6205

svn path=/branches/wlan-bringup/; revision=54913
2012-01-11 23:38:48 +00:00
Cameron Gutman 12f1e92c72 [DHCPCSVC]
- Fix ipconfig hang with ipconfig /renew and ipconfig /release
- Fix duplicate protocol entries being added for the same adapter
- Use WSAEventSelect and WaitForMultipleObjects to manage waiting between timeouts, adapter state changes, and incoming packets

svn path=/branches/wlan-bringup/; revision=54912
2012-01-11 22:24:49 +00:00
Cameron Gutman 83a2fb2da4 [DHCPCSVC]
- Make AdapterDiscoveryThread run in its own thread (duh?)

svn path=/branches/wlan-bringup/; revision=54899
2012-01-10 02:18:04 +00:00
Cameron Gutman 715350ea7c [WLANCONF]
- Return to using OID_GEN_PHYSICAL_MEDIUM to determine if an adapter supports WLAN

svn path=/branches/wlan-bringup/; revision=54898
2012-01-10 02:09:56 +00:00
Cameron Gutman 8b006f72fd [NDISUIO]
- Store the correct length in Irp->IoStatus.Information so bytes don't get chopped off
- Fix multiple bugs in the receive path (which now works correctly)
[WLANCONF]
- Use the correct length for NDIS requests
- Indicate success to the console for -c or -d
- Print current association info if called with no parameters

svn path=/branches/wlan-bringup/; revision=54897
2012-01-10 01:52:18 +00:00
Cameron Gutman d8403c17ca [NDIS]
- NdisGetCurrentSystemTime can be called at any IRQL
- Fixes assertions running the RTL8185 driver

svn path=/branches/wlan-bringup/; revision=54896
2012-01-10 01:23:35 +00:00
Cameron Gutman 9f0044039b [PCNET]
- Apply the same hack for OID_GEN_MEDIA_CONNECT_STATUS as we did for OID_GEN_HARDWARE_STATUS (since media state detection is broken for certain adapters)
[DHCPCSVC]
- Keep the adapter thread running to handle media state changes
[TCPIP]
- Fix media state detection which was totally broken because it was using the wrong OID

svn path=/branches/wlan-bringup/; revision=54895
2012-01-10 00:44:16 +00:00
Cameron Gutman 82f59adac9 [WLANCONF]
- Display fractional rates correctly (5.5 Mbps for example)

svn path=/branches/wlan-bringup/; revision=54890
2012-01-09 20:19:33 +00:00
Cameron Gutman e1d32a01d0 [WLANCONF]
- Use a different method for determining if an adapter supports 802.11 networks so it works on drivers that don't implement OID_GEN_PHYSICAL_MEDIUM

svn path=/branches/wlan-bringup/; revision=54888
2012-01-09 03:17:23 +00:00
Cameron Gutman bb04662d80 [WLANCONF]
- Fix supported rate calculation

svn path=/branches/wlan-bringup/; revision=54887
2012-01-09 00:09:35 +00:00
Cameron Gutman acdfc26b00 [WLANCONF]
- Fix my bit shifting fail

svn path=/branches/wlan-bringup/; revision=54885
2012-01-08 22:48:08 +00:00
Cameron Gutman 36ca688570 [WLANCONF]
- Add a missing newline
- Try to fix rate printing

svn path=/branches/wlan-bringup/; revision=54879
2012-01-08 20:11:29 +00:00
Cameron Gutman b21b8741c3 [NDISUIO]
- Fix a query binding bug that caused access to unallocated memory
[WLANCONF]
- Fix parameter parsing and dumb IOCTL_NDISUIO_QUERY_BINDING usage

svn path=/branches/wlan-bringup/; revision=54877
2012-01-08 06:51:44 +00:00
Cameron Gutman 1df989ccab [NDISUIO]
- Fix incorrect device name offset

svn path=/branches/wlan-bringup/; revision=54876
2012-01-08 06:23:53 +00:00
Cameron Gutman 781ac406d4 [NDISUIO]
- Use the correct IOCTL input buffer
[WLANCONF]
- Fix parameters to IOCTL_NDISUIO_QUERY_BINDING
- Wlanconf is ready for testing with a real WLAN adapter (for anyone who wants to checkout this branch and try it)
- Run "wlanconf -s <SSID>" to connect to an unencrypted wireless network
- Run "wlanconf -s <SSID> -w <WEP key>" to connect to a WEP encrypted wireless network (WPA not supported)

svn path=/branches/wlan-bringup/; revision=54875
2012-01-08 06:08:47 +00:00
Cameron Gutman 45a4987c53 [PSDK]
- Add some definitions
[WLANCONF]
- Add support for adhoc networks and WEP encryption
- Fix the BSSID info loop

svn path=/branches/wlan-bringup/; revision=54874
2012-01-08 04:45:51 +00:00
Cameron Gutman cd29f3bbe9 [BOOTDATA]
- Add wlanconf.exe to reactos.cab

svn path=/branches/wlan-bringup/; revision=54873
2012-01-08 03:29:56 +00:00
Cameron Gutman cc3106f2ec [WLANCONF]
- Fix a typo and fix CMake build

svn path=/branches/wlan-bringup/; revision=54872
2012-01-08 03:28:03 +00:00
Cameron Gutman 2e999b844a [WLANCONF]
- Build fixes and code improvements

svn path=/branches/wlan-bringup/; revision=54871
2012-01-08 03:22:37 +00:00
Cameron Gutman bca3d2fcde [PSDK]
- Add 802.11 OIDs

svn path=/branches/wlan-bringup/; revision=54870
2012-01-08 03:12:53 +00:00
Cameron Gutman 7186176e95 [WLANCONF]
- Initial drop of a little WLAN configuration tool to use until WZC is implemented and working
- Doesn't build yet due to missing OID definitions
- Some of this code will eventually be reused when implementing WZC

svn path=/branches/wlan-bringup/; revision=54869
2012-01-08 03:02:58 +00:00
Cameron Gutman 3f96d1516b [HIVESYS]
- Add an entry for ndisuio (temporary until INF install works)
- Autostart WZC service
[NDISUIO]
- Fix crash during binding and receive
- Add more debugging

svn path=/branches/wlan-bringup/; revision=54857
2012-01-07 05:54:14 +00:00
Cameron Gutman d665699bee [NDISUIO]
- Bug fixes
- Make the packet and buffer pools per adapter
- Crashes during bind for some reason

svn path=/branches/wlan-bringup/; revision=54855
2012-01-06 19:43:15 +00:00
Sylvain Petreolle fa180d7efb [NDISUIO]
Add missing include path.

svn path=/branches/wlan-bringup/; revision=54853
2012-01-06 19:32:05 +00:00
Cameron Gutman f889faa935 [NDISUIO]
- Build fixes

svn path=/branches/wlan-bringup/; revision=54849
2012-01-06 05:59:56 +00:00
Cameron Gutman ee6a082e17 [NDISUIO]
- Build file fixes

svn path=/branches/wlan-bringup/; revision=54831
2012-01-03 21:13:43 +00:00
Cameron Gutman 31b309b74d [NDISUIO]
- Make reads cancelable
- Fix a bug in IOCTL_CANCEL_READ handling

svn path=/branches/wlan-bringup/; revision=54823
2012-01-03 19:37:03 +00:00
Cameron Gutman 90d838bf1a [NDISUIO]
- Fix missing spin lock release
- Return the correct status for an invalid index

svn path=/branches/wlan-bringup/; revision=54822
2012-01-03 19:22:30 +00:00
Cameron Gutman 7360d0e1fb [NDISUIO]
- Handle IOCTL_NDISUIO_BIND_WAIT and IOCTL_NDISUIO_QUERY_BINDING

svn path=/branches/wlan-bringup/; revision=54821
2012-01-03 19:11:57 +00:00
Cameron Gutman 22b2ba722d [NDISUIO]
- Handle IOCTL_NDISUIO_OPEN_WRITE_DEVICE and IOCTL_NDISUIO_OPEN_DEVICE properly with regard to current open handles
- Check that we have read permissions (opened by IOCTL_NDISUIO_OPEN_DEVICE) before allowing queries or reads

svn path=/branches/wlan-bringup/; revision=54819
2012-01-03 18:12:29 +00:00
Cameron Gutman 9e9a049290 [NDISUIO]
- Implement IOCTL_CANCEL_READ
- Implement IRP_MJ_READ and IRP_MJ_WRITE handling
- Misc fixes

svn path=/branches/wlan-bringup/; revision=54818
2012-01-03 17:54:01 +00:00
Cameron Gutman 81d8d54ecf [NDISUIO]
- Forgot a file

svn path=/branches/wlan-bringup/; revision=54817
2012-01-03 16:13:06 +00:00
Cameron Gutman 93d3b91947 [NDISUIO]
- Fix a race condition during adapter context destruction
- Add missing IRP completion in IRP_MJ_READ and IRP_MJ_WRITE handlers
- Create an adapter context in response to PnP events

svn path=/branches/wlan-bringup/; revision=54816
2012-01-03 16:08:24 +00:00
Cameron Gutman 80c1df8be2 [NDISUIO]
- Add the NDISUIO driver to allow communication between user-mode and kernel-mode NIC drivers
- Only the IOCTLs required for WLAN are implemented right now
- Initial source drop without build testing

svn path=/branches/wlan-bringup/; revision=54810
2012-01-02 21:38:57 +00:00
Cameron Gutman 2b82fe44ea [WLAN-BRINGUP]
- Create a branch to drop my ndisuio work

svn path=/branches/wlan-bringup/; revision=54809
2012-01-02 20:53:24 +00:00