Update public source

This commit is contained in:
2026-11-19 02:20:29 +03:00
parent 012f209303
commit ddafbb613b
5 changed files with 15 additions and 18 deletions
+14 -14
View File
@@ -3252,15 +3252,15 @@ def api_network_wifi_connect():
"/api/wifi/channels"
)
def api_wifi_channels():
interface = request.args.get(
"interface",
""
).strip()
if not interface:
return jsonify(
{
"2.4": [],
@@ -3269,15 +3269,15 @@ def api_wifi_channels():
"error": "WiFi interface was not selected."
}
), 400
interfaces, interface_error = (
get_wifi_interfaces()
)
if interface_error:
return jsonify(
{
"2.4": [],
@@ -3286,10 +3286,10 @@ def api_wifi_channels():
"error": interface_error
}
), 500
if interface not in interfaces:
return jsonify(
{
"2.4": [],
@@ -3298,8 +3298,8 @@ def api_wifi_channels():
"error": "Invalid WiFi interface."
}
), 400
return jsonify(
get_wifi_channels(interface)
)
-1
View File
@@ -253,4 +253,3 @@ def main():
if __name__ == "__main__":
main()
+1 -1
View File
@@ -363,7 +363,7 @@ class CaptureParser:
"country":
row[7],
"vendor":
vendor,
-1
View File
@@ -275,4 +275,3 @@ class Session:
self.gps_positions += 1
-1
View File
@@ -2729,4 +2729,3 @@ def import_wifitrip(
)
return result