File: mb-applet-wireless-patch

package info (click to toggle)
matchbox-panel 0.9.3%2Bgit20100816-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 976 kB
  • sloc: ansic: 6,332; makefile: 164; sh: 11
file content (16 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Bug fix in mb-applet-wireless.c
--- a/applets/mb-applet-wireless.c
+++ b/applets/mb-applet-wireless.c
@@ -356,10 +356,10 @@
  if (Mwd.iface != NULL && WInfo.has_stats == 1) 
    return 0;
 
- if(iw_get_range_info(Wfd, Mwd.iface, &(WInfo.range)) >= 0)
+ if(iw_get_range_info(Wfd, ifname, &(WInfo.range)) >= 0)
    WInfo.has_range = 1;  
 
- if (iw_get_stats(Wfd, Mwd.iface, 
+ if (iw_get_stats(Wfd, ifname, 
 		  &(WInfo.stats),
 		  &(WInfo.range), WInfo.has_range) >= 0)
    WInfo.has_stats = 1;