Commit Graph

146 Commits

Author SHA1 Message Date
billz
681594b8d5 Remove unused var, comments 2025-11-28 08:47:25 +01:00
billz
a0a3a9ca52 Refactor: encapsulate WiFi client operations in WiFiManager class 2025-11-27 18:45:12 +01:00
billz
8bf918ce28 Fix getNetworkIdBySSID() column condition 2025-11-27 12:20:12 +01:00
billz
f9d115bbde Merge remote-tracking branch 'origin/master' into fix/wifi-security-open 2025-11-27 11:09:35 +01:00
meandthemachine
0938c3d9e9 Remove unused local variable
The  assigned/incremented value is/was never used anywhere else in the loop.
2025-11-24 16:03:34 +01:00
meandthemachine
2c63f84862 Determine start index of nearby networks more robustly
Resolves #2003:
Unless we examine its source code, we don't exactly know if `wpa_cli ... list_networks` always assigns network ids in the order the known networks are listed in the configuration file. Therefore, we should not assume it to be this way and instead, we should make the code capable of handling all scenarios (in-synch as well as async) in a robust way.
2025-11-24 15:51:10 +01:00
billz
16e52c3b90 Remove stale wpa_supplicant socket and restart daemon manually 2025-11-24 11:03:03 +01:00
billz
bf86a6ef57 Use self::SECURITY_OPEN for network protocol conditions 2025-11-24 10:01:59 +01:00
billz
f547a35312 Define constant for Open for security protocol 2025-11-23 09:47:58 +01:00
billz
60d58376f1 Fix: Update regex patterns in buildConfig() 2025-11-18 10:59:26 +01:00
billz
95229fd1b7 Add public method getHostapdLogs() 2025-11-16 21:34:48 +01:00
billz
b451971c46 Replace enable/disable log scripts (deprecated) w/ logger_syslog=-1 2025-11-16 21:34:25 +01:00
billz
f0d5bde1e5 Add exception handling for getRegDomain() 2025-11-05 17:55:14 +01:00
billz
dcf1a8f8f4 Refactor locale handling into LocaleManager class 2025-10-30 12:12:18 +01:00
billz
b84d26447f Add cookie-based locale persistence 2025-10-22 02:25:34 -07:00
billz
5fa691bca1 Fix: domain_name_server declaration for br0 2025-10-19 11:08:50 -07:00
billz
74bd81a92c Add status message when bridge is enabled, newlines to br0 config 2025-10-19 10:22:03 -07:00
billz
fb4571a191 Construct bridgeConfig when enabled, pass to dhcpcd->buildConfig() 2025-10-19 09:28:43 -07:00
billz
b98c1fb912 Add bridgedEnable + br0 config handling to buildConfig() 2025-10-19 09:28:21 -07:00
billz
fdfbc62e9b Validate bridged mode static IP configuration 2025-10-19 09:23:46 -07:00
billz
a844328da3 php7.4 compatibility: str_starts_with -> strncmp 2025-10-11 00:45:21 -07:00
billz
8bf4116b42 Create installDebianPackages(), select .deb dpkg for current arch 2025-10-10 04:21:39 -07:00
billz
417f803411 Minor: comments + rename method 2025-09-26 23:29:24 -07:00
billz
e514178b33 Create ensureWpaSupplicantConf(), call from setKnownStationsWPA 2025-09-25 01:52:09 -07:00
billz
66b0a42576 Fix undefined vars in class methods + includes 2025-09-12 23:08:48 -07:00
billz
8bb18b43f8 Fix: fallback by seeding default values for interface 2025-09-11 08:56:09 -07:00
billz
73985333b0 Update class methods + js handler for custom path locations 2025-08-21 12:33:48 -07:00
billz
5319b9dbbd Handle undefined PATH_INFO value 2025-08-20 08:11:51 -07:00
billz
75577ecd1d Simplify wpa key management, ieee80211w settings 2025-08-17 14:46:15 -07:00
billz
d1c2e0d3ba Revise buildConfig() to parse settings from getDefaultNetValue 2025-08-17 13:01:58 -07:00
billz
b23084fe7b Fix: Return expected datatype from getHostapdIni() 2025-08-12 13:26:00 -07:00
billz
7f2eb6e88f Coalesce dhcp-option=6 lines, prevents invalid config 2025-08-02 13:13:41 -07:00
billz
63491b17d6 Run wpa_supplicant in background mode (-B) 2025-08-02 13:12:39 -07:00
billz
dadc4e4fb4 Refactor setKnownStationsWPA(), add helper method addWpaNetwork() 2025-07-28 15:56:01 -07:00
billz
c19bd60241 Fix: set return value (bool) 2025-07-20 14:46:33 -07:00
billz
7cc436fbaa Add missing param in dnsmasq->saveConfig() 2025-07-20 10:00:15 -07:00
billz
87f55c8b1e Standardize array return/input type for build + save config 2025-07-20 09:58:56 -07:00
billz
98922434f2 Added buildConfigEx(), migrated from legacy controller 2025-07-20 08:07:51 -07:00
billz
1e2f77abcb Added buildEx, buildDefault, saveConfigDefault, remove, scanConfigDir methods 2025-07-20 06:38:33 -07:00
billz
ed1938d10b Migrate validate, remove + removeIface methods from global function defs 2025-07-20 06:35:19 -07:00
billz
9df3baa5f1 Minor: standardize comment header, declare strict_types=1 2025-07-20 02:08:33 -07:00
billz
cbc6ee74c3 Consolidate non-hostapd concerns under HotspotService class 2025-07-20 02:07:53 -07:00
billz
cf32a4ba01 Implement saveSettings(), consolidate hotspot functions + static methods 2025-07-20 02:06:40 -07:00
billz
3fe4990cfd Implement buildConfig, saveConfig, getInterfaceConfig methods 2025-07-19 15:08:13 -07:00
billz
92f9cf745e Add getHostapdIni, countHostapdConfigs methods 2025-07-19 15:04:16 -07:00
billz
e12be86c8c Add static methods for 802.11 standards, resolveHwMode() 2025-07-19 06:07:54 -07:00
billz
126f64a793 Fix PHP warning
Fix PHP warning
2025-07-19 06:07:52 -07:00
billz
b9642371e0 Use HostapdValidator, add deriveInterfaces, deriveModeStates, iwRegSet methods 2025-07-19 06:07:52 -07:00
billz
9dc6209b47 Minor: comment block
Minor: comment block
2025-07-19 06:07:49 -07:00
billz
9d03517896 Add getIfaceMetric public method 2025-07-19 03:17:17 -07:00