Client Module - No SSIDs

Device: NANO
Type: Suggestion
Status: Closed

Patch to get SSIDs working;

--- api/module.php.orig 2016-01-03 11:36:10.000000000 +0000
+++ api/module.php 2016-01-03 11:36:10.000000000 +0000
@@ -41,11 +41,18 @@ class Clients extends SystemModule
$arpEntryArray = explode(' ', $arpEntry);
$clientReport['arp'][$arpEntryArray[1]] = $arpEntryArray[0];
}
- $clientReport['ssids'] = $this->getSSIDData();
+ $clientReport['ssids'] = array();
+ exec('cat /tmp/pineap.log | awk '$4 == "Association," {printf "%s %sn", $5, $6 $7 $8 $9}'',$ssidsEntries);
+ foreach ($ssidsEntries as $ssidEntry) {
+ $ssidEntryArray = explode(',', $ssidEntry);
+ $clientReport['ssids'][$ssidEntryArray[0]] = $ssidEntryArray[1];
+ }
+
$this->response = array('clients' => $clientReport);
}

Comments:

Sebkinne
2016/01/03 11:57
Hi Wintersoldier,

Thanks for submitting this patch! The issue has already been fixed in a slightly different way, with the fix being inside the getSSIDData() function.


Best Regards,
Sebkinne

Add Comment:

Please log in to comment.