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
f73f25708c
Fix: Cleanup, resolve warnings in getWifiInterface()
2025-03-20 02:10:40 -07:00
Daniel Rose
534b4df01a
fix: handle open wifi in setKnownStationsWPA
correctly
...
use `... key_mgmt NONE` instead of `... psk XXX`
2024-07-24 10:04:19 +02:00
billz
d56870e2db
Update shell cmd used in reinitializeWPA
2024-01-16 18:29:16 +01:00
billz
9fe7bad7b1
Update reinitializeWPA method to use wpa_cli reconfigure
2023-12-04 08:13:13 +00:00
billz
e0751d6f90
Use getNetworkIdBySSID() to assign index values
2023-12-02 19:53:16 +00:00
billz
e71042cb63
Create setKnownStationsWPA()
2023-12-02 17:32:15 +00:00
billz
c5ffab8332
Revise reinitializeWPA method
2023-12-02 14:32:13 +00:00
billz
deac75af89
Fix: handle 64 char passkey in absence of 8-63 char passhprase
2023-10-08 11:46:12 +02:00
billz
ceea867c69
Fix php warning + undefined var notice
2023-09-06 12:25:39 +02:00
billz
fcdd966619
Update w/ gettext
2023-03-25 08:52:56 +01:00
billz
26bde30e95
Create getSignalBars(), add max/min RSSI constants
2023-03-24 12:01:47 +01:00
billz
65c1e58f77
Limit preg_split to 2 parts
2023-02-09 18:27:51 +01:00
billz
60450b5165
Add wext driver wrapper as a fallback, if unknown in nl80211 wrapper
2023-01-25 13:14:10 +01:00
billz
43c9997f07
Improve handling of wpa_cli output
2022-12-29 06:27:32 +01:00
zbchristian
db9f76eb5c
only lower case hex sequences in non-ASCII SSID
2021-11-24 22:52:59 +00:00
zbchristian
634eb72760
Convert non ASCII ssid for display to utf8
...
Convert hex bytes to binary. Assumes utf8 encoding
2021-11-24 22:49:05 +00:00
zbchristian
74b6a15a75
Correct non-ASCII SSID read from wpa_supplicant
2021-11-24 22:47:39 +00:00
zbchristian
d8626bd790
Zbchristian fix wifi client connect #53
2021-11-24 19:50:06 +00:00
glaszig
9dc1f14ccb
separate connected from known from nearby wifi stations in ui
2021-06-01 03:02:04 +01:00
billz
a4d5cc1af6
Remove extended ASCII ISO Latin-1 printable chars from filter
2021-05-31 10:49:02 +01:00
glaszig
fe3b8a108e
properly exclude raspap station from found wifi stations
2021-05-30 21:58:38 +01:00
glaszig
92e154fa64
interpret hex sequences in ssid station names
...
resolves #917
2021-05-30 21:49:48 +01:00
billz
e5024c4c19
Minor: fix labels + update en_US locale
2021-04-30 17:24:45 +01:00
billz
8873735d7f
Add status msg, update shell cmds
2021-04-30 08:37:41 +01:00
Bill Zimmerman
3451efe132
Create reinitializeWPA()
2021-04-29 23:58:46 +02:00
billz
b21ea0d28d
Transfer template logic to includes, see #749 thx @mp035
2021-02-02 12:26:14 +00:00
Mark Pointing
12b69590da
Removed some band-aid fixes of incorrect client/ap interface identification function.
2020-12-15 10:45:27 +00:00
Mark Pointing
ed09f9b9da
Cleaned up some debugging code identified when comparing PR.
2020-12-15 19:02:33 +10:00
Mark Pointing
c5f692263d
Fixed function getWifiInterface for rpi0W. The old version would get 'wifi_client_interface' and 'ap_interface' reversed when rpi0W is used in AP-STA mode. This commit fixes the issue.
2020-12-15 18:05:07 +10:00
zbchristian
e6652c025d
Remove check on existing SESSION variable
2020-06-14 18:22:51 +02:00
zbchristian
417e9489bb
disable check on existing session variable
2020-06-14 17:40:50 +02:00
christian Zeitnitz
656ba9234b
Fix intial assignment of $_SESSION['ap_interface']
2020-06-09 20:53:11 +02:00
christian Zeitnitz
f8a094134b
Add Session variable "wifi_client_interface"
2020-06-09 20:25:19 +02:00
billz
9d1659b97b
Document getWifiInterface
2020-06-09 15:44:21 +01:00
billz
8ae1e5a8f2
Rename constant for clarity
2020-06-09 15:34:19 +01:00
billz
2ca9bf5b6f
Rename ambiguous variable for clarity
2020-06-09 15:32:49 +01:00
zbchristian
633f389f4e
Check for second wifi interface as wifi client
2020-06-09 10:15:21 +02:00
billz
2814ab5d55
Bugfix: typo
2020-06-08 09:16:10 +01:00
billz
43819ddfd2
Fix require path
2020-06-07 19:12:00 +01:00
billz
9c2ae296d3
Merge branch 'zbchristian-wlan-switch' of https://github.com/billz/raspap-webgui into zbchristian-wlan-switch
2020-06-07 17:20:09 +01:00
billz
e3c378427b
Added getWifiInterface
2020-06-07 17:13:43 +01:00
Bill Zimmerman
5c88aafbec
Merge branch 'master' into zbchristian-wlan-switch
2020-06-07 15:29:28 +02:00
billz
b14175ab0c
Replace interface constant with _SESSION value
2020-06-07 14:25:28 +01:00
billz
eb6f2c5db7
Fix build error
2020-05-24 08:30:32 +01:00
billz
1a8ffd94fc
Replaced tabs w/ spaces, applied PSR-2 code standard
2020-05-24 08:24:42 +01:00
billz
b128c4106c
Applied patches from #581
2020-05-24 08:14:07 +01:00
billz
457da91008
Processed with phpcbf
2020-02-15 17:57:46 +00:00
billz
7938069841
Minor: mode change
2019-09-08 16:13:45 +01:00
billz
8be24381a8
Processed with phpcbf for PSR-2 coding standard
2019-09-07 16:42:31 +01:00