mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-22 03:55:25 +00:00
Merge pull request #202 from lakinduakash/dev
Fix permission error when listing devices
This commit is contained in:
commit
d08e0290c1
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -1,5 +1,6 @@
|
|||||||
linux-wifi-hotspot (4.3.0) UNRELEASED; urgency=low
|
linux-wifi-hotspot (4.3.1) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* Add qr code generate support
|
* Add qr code generate support
|
||||||
|
* Fix error when listing connected devices
|
||||||
|
|
||||||
-- Lakindu Akash <lakinduakash@users.noreply.github.com> Sat, 18 Oct 2021 04:12:00 +0530
|
-- Lakindu Akash <lakinduakash@users.noreply.github.com> Sat, 18 Oct 2021 04:12:00 +0530
|
@ -464,7 +464,7 @@ char* generate_qr_image(char* ssid,char* type,char *password){
|
|||||||
Node get_connected_devices(char *PID)
|
Node get_connected_devices(char *PID)
|
||||||
{
|
{
|
||||||
char cmd[BUFSIZE];
|
char cmd[BUFSIZE];
|
||||||
snprintf(cmd, BUFSIZE, "%s --list-clients %s", CREATE_AP, PID);
|
snprintf(cmd, BUFSIZE, "%s %s --list-clients %s", SUDO, CREATE_AP, PID);
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
Node l = (struct Device *)malloc(sizeof(struct Device));
|
Node l = (struct Device *)malloc(sizeof(struct Device));
|
||||||
Position head = l;
|
Position head = l;
|
||||||
|
Loading…
Reference in New Issue
Block a user