Changeset 36410


Ignore:
Timestamp:
2013-04-23T20:35:50+02:00 (5 years ago)
Author:
nbd
Message:

hostapd: return the frequency to some ubus calls to make integration easier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/hostapd/patches/700-ubus_support.patch

    r36376 r36410  
    4141--- /dev/null 
    4242+++ b/src/ap/ubus.c 
    43 @@ -0,0 +1,354 @@ 
     43@@ -0,0 +1,356 @@ 
    4444+/* 
    4545+ * hostapd / ubus support 
     
    181181+ 
    182182+       blob_buf_init(&b, 0); 
     183+       blobmsg_add_u32(&b, "freq", hapd->iface->freq); 
    183184+       list = blobmsg_open_table(&b, "clients"); 
    184185+       for (sta = hapd->sta_list; sta; sta = sta->next) { 
     
    384385+       if (req->frame_info) 
    385386+               blobmsg_add_u32(&b, "signal", req->frame_info->ssi_signal); 
     387+       blobmsg_add_u32(&b, "freq", hapd->iface->freq); 
    386388+ 
    387389+       if (ubus_notify_async(ctx, &hapd->ubus.obj, type, b.head, &ureq.nreq)) 
Note: See TracChangeset for help on using the changeset viewer.