{"id":25688997,"url":"https://github.com/embeddedos/wifi","last_synced_at":"2025-02-24T21:17:24.293Z","repository":{"id":240911390,"uuid":"803717455","full_name":"EmbeddedOS/wifi","owner":"EmbeddedOS","description":"Virtual WLAN (Wireless Local Area Network)","archived":false,"fork":false,"pushed_at":"2024-05-28T10:15:57.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-08T15:14:27.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmbeddedOS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-21T08:56:44.000Z","updated_at":"2024-07-08T15:14:32.692Z","dependencies_parsed_at":"2024-05-28T00:49:32.631Z","dependency_job_id":"5b4d45d2-6fee-416e-8233-cde6430af0d4","html_url":"https://github.com/EmbeddedOS/wifi","commit_stats":null,"previous_names":["lava264/vwlan","lava264/wifi","embeddedos/wifi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fwifi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fwifi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fwifi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmbeddedOS%2Fwifi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmbeddedOS","download_url":"https://codeload.github.com/EmbeddedOS/wifi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240557481,"owners_count":19820360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-24T21:17:23.005Z","updated_at":"2025-02-24T21:17:24.270Z","avatar_url":"https://github.com/EmbeddedOS.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WiFi\n\n## What is it?\n\n- Everything about wifi:\n  - 1. Documentation.\n  - 2. WiFi client with raw socket in C.\n  - 3. Virtual 802.11 kernel module to emulate wireless (WiFi) network.\n\n## Load The kernel module to emulate hw\n\n### Using mac80211_hwsim module\n\n- [mac80211_hwsim](https://hackmd.io/@akiranet/r1OC8CaNv)\n\n- Load module:\n\n```bash\nsudo modprobe mac80211_hwsim radios=2 dyndbg=+p\n```\n\n- Enable monitor mode:\n\n```bash\nsudo ifconfig wlan0 down\nsudo iwconfig wlan0 mode Monitor\nsudo ifconfig wlan0 up\n```\n\n- (Optional) monitor with tcpdump:\n\n```bash\nsudo tcpdump -i wlan0\n```\n\n- Start a access point with `hostapd` ([hostapd-guide](https://wiki.gentoo.org/wiki/Hostapd)):\n\n```bash\nsudo hostapd -i wlan0 hostapd.conf -dd\n```\n\n- Test connect access point with (wpa_supplicant):\n\n```bash\nsudo wpa_supplicant -c wpa_supplicant.conf -i wlan1\n```\n\n- Monitor all wifi network:\n\n```bash\nsudo ifconfig hwsim0 up\nsudo tcpdump -i hwsim0 -v\n```\n\n### Using our virtual mac80211 kernel module (TODO)\n\n```bash\nsudo insmod vwlan.ko\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddedos%2Fwifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembeddedos%2Fwifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembeddedos%2Fwifi/lists"}