Commit Graph
2 Commits
Author SHA1 Message Date
Guy ResheffandClaude Opus 4.6 fee9a651ba Static build support + RTM_NEWLINK race fix
1. CMakeLists.txt: BUILD_STATIC cmake option. When ON, links against
   static libnl-3 archives and sets -static linker flag. Required for
   deploying vwifi-client to OpenWrt DUT (no libnl-3 shared library).

2. cmonwirelessdevice.cc: RTM_NEWLINK race fix. new_net_interface()
   called get_winterface_infos() which does an nl80211 roundtrip on
   wifi.nls — same socket used by winet_update_loop's 1s poll. When
   both hit the socket concurrently, responses get crossed and the
   new interface is permanently lost from _list_winterfaces. Fix:
   call _newinet_cb(inetdevice) directly since RTM_NEWLINK already
   has all needed info (name, ifindex, MAC). No shared socket access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 19:52:20 -07:00
Guy Resheff 92df7a383a Upstream vwifi v7.0 (Raizo62/vwifi @ 4a9842e)
Unmodified upstream source from https://github.com/Raizo62/vwifi
Commit: 4a9842e "CMakeLists.txt : VERSION = 7.0"

Simulator of WiFi (802.11) interfaces to communicate between
several Virtual Machines via mac80211_hwsim + TCP relay.

License: Apache-2.0
2026-03-08 08:19:45 -07:00