summaryrefslogtreecommitdiff
path: root/components/wifi.c
Commit message (Collapse)AuthorAgeFilesLines
* Format error messages properlyAaron Marcher2018-03-281-4/+5
| | | | | Make use of strerror(errno) and format all errors equally: function ['parameters']: error message
* Get rid of err.h as it is not portableAaron Marcher2018-03-281-5/+4
| | | | | Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
* More robust preprocessor switchesAaron Marcher2018-03-211-1/+1
| | | | | Replace #ifdef with #if defined() and #elif with #elif defined() as it should only test if it is defined or not.
* Build Linux-only functions only on LinuxAaron Marcher2018-03-181-0/+2
|
* Fix a bug in wifi_essid().Aaron Marcher2018-01-061-0/+1
| | | | | When an invalid interface name is passed to wifi_essid() it does not close opened sockets.
* Return actual percentage for wifi_perc()parazyd2017-10-241-3/+7
| | | | | | Implement basic percentage calculation for wifi_perc. With this commit, the function returns correct percentage, since the max of what /proc/net/wireless returns is 70.
* Move components into dedicated subdirectoryLaslo Hunhold2017-09-241-0/+85
This brings us a lot more tidiness.