{"id":21028048,"url":"https://github.com/d2r2/upstream-hostapd-force-ht40-mode-patch","last_synced_at":"2026-02-18T15:31:05.524Z","repository":{"id":75776913,"uuid":"258990316","full_name":"d2r2/upstream-hostapd-force-ht40-mode-patch","owner":"d2r2","description":"Add option \"force_ht40\" to force 802.11n 40MHz AP mode, to override overlapping BSSes detection and escape fallback to 20MHz mode.","archived":false,"fork":false,"pushed_at":"2020-04-26T14:42:58.000Z","size":10,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T16:03:14.962Z","etag":null,"topics":["hostapd","networking","patch"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d2r2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-26T09:28:47.000Z","updated_at":"2025-06-12T10:25:41.000Z","dependencies_parsed_at":"2023-06-07T16:31:32.231Z","dependency_job_id":null,"html_url":"https://github.com/d2r2/upstream-hostapd-force-ht40-mode-patch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d2r2/upstream-hostapd-force-ht40-mode-patch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2r2%2Fupstream-hostapd-force-ht40-mode-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2r2%2Fupstream-hostapd-force-ht40-mode-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2r2%2Fupstream-hostapd-force-ht40-mode-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2r2%2Fupstream-hostapd-force-ht40-mode-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d2r2","download_url":"https://codeload.github.com/d2r2/upstream-hostapd-force-ht40-mode-patch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2r2%2Fupstream-hostapd-force-ht40-mode-patch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011985,"owners_count":26085039,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hostapd","networking","patch"],"created_at":"2024-11-19T11:53:45.980Z","updated_at":"2025-10-12T16:06:01.444Z","avatar_url":"https://github.com/d2r2.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Patch for upstream hostapd to force 40MHz operation\r\n===================================================\r\n\r\nThis patch is completely based on beautiful hostapd fork: https://github.com/ivkos/hostap-force-ht40.\r\n\r\nPurpose of this project - to get hostapd installation which work good in modern urban conditions,\r\nwhere radio air is filled with neighboring Wi-Fi points. Without this modification hostapd service regularly fallback to 20MHz mode, reporting that there are overlapping BSSes exist around.\r\n\r\nAim of this project - to have minimal patch for upstream hostapd release, without necessity to keep the whole hostapd branch in sync with upstream sources.\r\n\r\nDisclamer 1\r\n-----------\r\nRemember that this change is in violation of IEEE Std 802.11-2012, 10.15.3.2 and is entirely on your conscience.\r\n\r\nDisclamer 2\r\n-----------\r\nI'm not recommended to use hostapd with wifi hardware adapters based on Realtek chipsets. My personal experience demonstrate - Realtek had bad support of nl80211 netlink interface, and, as a result, hostapd behavior looks buggy with Realtek hardware. Opposite - and this is again from my personal experience - Ralink network devices work much more stably and reliably with hostapd.\r\n\r\n\r\nCompilation and installation\r\n----------------------------\r\n\r\n* Download and unzip current stable hostapd sources: https://w1.fi/hostapd/ (Latest release section).\r\n* Copy patch file `upstream-hostapd-force-ht40-mode.patch` from here to hostapd source root folder (where hostapd, src folders located).\r\n* Run `patch -p0 \u003c upstream-hostapd-force-ht40-mode.patch` to apply patch.\r\n* Execute hostapd compilation with `make` with futher installation with `make install`.\r\n* Add `force_ht40=1` option to hostapd.conf file to force 40MHz mode.\r\n* Start hostapd service.\r\n\r\n\u003eNote 1: Do not forget to copy deconfig to .config and uncomment `#CONFIG_IEEE80211N=y`, before hostapd compilation.\r\n\u003eNote 2: You can additionally monitor how your hostapd service work via such Android application as \"WiFi Analyzer\".\r\n\r\nTested with equipment\r\n---------------------\r\n\r\n* Orance PI Zero Plus with external WiFi adapter COMFAST CF-WU7300ND (Ralink RT3072 chipset) 2.4Ghz.\r\n\r\nContact\r\n-------\r\n\r\nPlease use [Github issue tracker](https://github.com/d2r2/upstream-hostapd-force-ht40-mode-patch/issues) for filing bugs or feature requests.\r\n\r\n\r\nLicense\r\n-------\r\n\r\nLicensed under BSD License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2r2%2Fupstream-hostapd-force-ht40-mode-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd2r2%2Fupstream-hostapd-force-ht40-mode-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2r2%2Fupstream-hostapd-force-ht40-mode-patch/lists"}