Ad-hoc network support for Linux
Patch status: rejected
Patch by Adrien Schildknecht
To apply this patch, use:
curl http://cr.i3wm.org/patch/9/raw.patch | git am
b/src/print_wireless_info.c
13 |
@@ -93,6 +93,12 @@ static int get_wireless_info(const char *interface, wireless_info_t *info) { |
14 |
info->essid[IW_ESSID_MAX_SIZE] = '\0'; |
15 |
} |
16 |
|
17 |
+ /* Ad-Hoc network does not provide stats */ |
18 |
+ if (wcfg.mode == 1) { |
19 |
+ close(skfd); |
20 |
+ return 1; |
21 |
+ } |
22 |
+ |
23 |
/* Wireless quality is a relative value in a driver-specific range. |
24 |
Signal and noise level can be either relative or absolute values |
25 |
in dBm. Furthermore, noise and quality can be expressed directly |