Commit Graph

165 Commits

Author SHA1 Message Date
billz
49ee0751d0 Reload .ini after save, fix LogEnable condition 2025-11-17 09:55:54 +01:00
billz
e5c162ddcf Revise fetch hostapd logs w/ hotspot->getHostapdLogs() 2025-11-16 21:32:09 +01:00
billz
f0d5bde1e5 Add exception handling for getRegDomain() 2025-11-05 17:55:14 +01:00
billz
d5ac2f6881 Fetch br0 properties with $dhcpcd->getInterfaceConfig 2025-10-19 11:07:43 -07:00
billz
74194205ec Formatted for clarity 2025-10-19 09:29:56 -07:00
billz
636e04fa78 Migrate non-hostapd methods to HotspotService class 2025-07-20 02:05:05 -07:00
billz
5a57d542c5 Normalize state flags, try-catch blocks for method calls, prune legacy dhcpcd routines 2025-07-19 15:11:37 -07:00
billz
c5ff6912ea Set properties from class methods, process txpower input 2025-07-19 06:07:54 -07:00
billz
3b352b12d8 WIP: migrate functions to class methods, refactor saveHostAPDConfig() 2025-07-19 06:07:52 -07:00
billz
094ebdb85f Replace procedural code w/ dnsmasq->buildConfig, hostapd->persistHostapdIni 2025-07-19 00:23:14 -07:00
billz
b293355eac Replace procedural code w/ HostapdManager, DnsmasqManager method calls 2025-07-18 14:43:25 -07:00
billz
c0df273c36 Refactor hostapd cfg parse/write (source: raspap-insiders) 2025-07-14 03:18:53 -07:00
billz
0dc9e24f65 Refactor dhcpcd.conf handling w/ updateDhcpcdConfig() 2025-05-12 07:16:32 -07:00
billz
5d8b71b768 Delegate raspap-network-activity@*.service control to raspapd.service 2025-04-28 00:14:04 -07:00
billz
cc215530d3 Stop raspap-network-activity@*.service, start service template w/ iface 2025-04-27 01:35:21 -07:00
Marko Winkler
52a4acced8 Add interface validation and improve shell argument escaping
- Introduced validateInterface() to ensure only existing network interfaces are used
- Used escapeshellarg() for user-supplied interfaces in shell commands (iw, iwgetid)
- Replaced direct usage of $_POST['interface'] with validated fallback to RASPI_WIFI_AP_INTERFACE
- Improved code readability by reducing redundant assignments
2025-04-23 21:31:38 +02:00
billz
084b2e1268 Update 802.11n bands, resolves #1797 2025-03-23 07:22:15 -07:00
billz
afa3006de2 Minor: code cleanup 2025-03-20 02:54:30 -07:00
billz
16f6b7f979 Fix numerous php warnings for undefined vars 2025-03-20 02:07:51 -07:00
billz
5b88728ec1 Create function parseUserHostapdCfg() 2024-09-26 04:17:34 -07:00
billz
677fe42d84 Add support for custom hostapd.conf.users file 2024-09-26 01:36:13 -07:00
billz
cffcac0c52 Exec iwgetid w/ client iface session var 2024-02-24 10:35:35 +01:00
billz
74656c63ed Update templates w/ getLogLimited, add $logdata to payload 2023-11-28 10:05:06 +00:00
billz
a95b43e23e Handle interfaces with no default dhcp settings, update status messages 2023-11-10 09:29:49 +00:00
billz
ef084ef537 Define/set default subnet for wlan1 2023-11-09 18:32:34 +00:00
billz
6f454294df Constants for 5GHz channel min/max 2023-11-07 14:06:57 +00:00
billz
f131c8463d Update iwRegSet status message + en_US locale 2023-11-06 17:14:18 +00:00
billz
6383f9b88b Revert "Update iwRegSet status message, en_US locale + compile .mo"
This reverts commit 9343b11cc9.
2023-11-06 17:08:52 +00:00
billz
9343b11cc9 Update iwRegSet status message, en_US locale + compile .mo 2023-11-06 07:38:16 +00:00
billz
1ee31d9221 Define HOSTAPD_5GHZ_CHANNEL_MIN, set VHT center frequency segment value 2023-11-06 07:28:50 +00:00
billz
fee5a69342 Add iwRegSet() -> set reg domain for selected country 2023-11-05 16:52:09 +00:00
billz
5e802e8a0b Remove valid RASPI_5GHZ_ISO_ALPHA2 country, set hwModeDisabled 2023-11-05 14:36:18 +00:00
billz
66f8cc0b75 Replace ISO 2-letter country code literals w/ isoquery (localized) 2023-11-04 19:09:55 +00:00
billz
2b543c605f Fix miscellaneous php warnings 2023-10-28 17:00:34 +01:00
billz
3e404b0202 Reduce service restart speed + UI tweaks 2023-10-21 15:43:49 +01:00
billz
33c596189d Apply autoloader support for status messages 2023-09-16 11:46:11 +02:00
billz
c2d740ef44 Implement PSR-4 compliant class autoloader 2023-09-16 10:43:05 +02:00
billz
55c0a49911 Fix php warnings + general code cleanup 2023-09-03 09:47:51 +02:00
billz
7760a1d7cb Update sanitize var method 2023-03-29 09:35:25 +02:00
billz
1e52ff598b Sanitize input with escapeshellarg() 2023-03-29 08:25:18 +02:00
billz
7b3a7dba1d Move template logic to includes + code cleanup 2023-03-20 20:14:42 +01:00
billz
24abe9c53c Update wireless mode items 2023-03-20 20:00:28 +01:00
billz
7674feaf61 Add operatingSystem check to bridge option 2022-06-22 11:50:00 +01:00
billz
a4960f89ac Get system->operatingSystem() 2022-06-08 17:29:23 +00:00
Bill Zimmerman
21da37712b Fix: assign iw reg cc value if empty 2022-01-05 11:19:40 +01:00
Bill Zimmerman
793bbfac53 Bugfix: rewrite selected wlan dhcpcd cfg 2022-01-04 19:02:12 +01:00
zbchristian
0adbf9f215 Fix system info class creation
Hostapd.php is throwing an error.
Two problems found:
1) the class System is not existing. Its actually called Sysinfo
2) the namespace of the class is RaspAP\System
2021-08-31 16:43:44 +02:00
billz
06476b9a61 Merge with upstream master 2021-06-05 12:02:26 +01:00
billz
3969db61b0 Validate wpa_passphrase w/ ctype_print 2021-05-07 11:33:17 +01:00
billz
6bfb3a3c9d Add escapeshellarg() for iwgetid interface 2021-05-01 17:46:53 +01:00