Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
intel
Commits
7aa6601e
Commit
7aa6601e
authored
4 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
hostapd_wave: pass unassociated sta data to ubus
parent
5c0df9d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hostapd_wave/patches/0600-pass-unassociated-sta-data-to-ubus.patch
+41
-0
41 additions, 0 deletions
...ave/patches/0600-pass-unassociated-sta-data-to-ubus.patch
with
41 additions
and
0 deletions
hostapd_wave/patches/0600-pass-unassociated-sta-data-to-ubus.patch
0 → 100644
+
41
−
0
View file @
7aa6601e
From 46152499221e56340195196bd90d348938023b60 Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: Thu, 23 Jul 2020 12:23:16 +0200
Subject: [PATCH 3/3] tmp1
---
src/ap/drv_callbacks.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index 82d13ea..a29a08c 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -38,6 +38,7 @@
#include "acs.h"
#include "wmm.h"
+#include "ubus_iface.h"
/* Must be aligned with drivers wv_wds_sta_info structure */
struct wv_wds_sta_info
@@ -1167,6 +1168,16 @@
static void hostapd_event_ltq_unconnected_sta_rx(struct hostapd_data *hapd,
unc_sta->noise[2] ? unc_sta->rssi[2] - unc_sta->noise[2] : 0, /* RSSI and noise to SNR */
unc_sta->noise[3] ? unc_sta->rssi[3] - unc_sta->noise[3] : 0, /* RSSI and noise to SNR */
unc_sta->rate);
+
+
+ notify_ubus_event("wifi.sta {\"macaddr\":\"%02x:%02x:%02x:%02x:%02x:%02x\", "
+ "\"vif\":\"%s\",\"action\":\"monitor\", "
+ "\"rssi\":[%d,%d,%d,%d], "
+ "\"bssid\":\"%02x:%02x:%02x:%02x:%02x:%02x\"}",
+ MAC2STR(unc_sta->addr), hapd->conf->iface,
+ unc_sta->rssi[0], unc_sta->rssi[1],
+ unc_sta->rssi[2], unc_sta->rssi[3],
+ MAC2STR(hapd->conf->bssid));
}
static u16 check_wmm_wds(struct hostapd_data *hapd, struct sta_info *sta,
--
2.7.4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment