projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d72128
)
wifi: Check we have valid wifi pointer in autoscan
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Thu, 21 Jun 2012 10:57:33 +0000
(13:57 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 25 Jun 2012 06:48:14 +0000
(09:48 +0300)
The wifi pointer in device might be NULL if wpa_supplicant dies
between autoscans.
plugins/wifi.c
patch
|
blob
|
history
diff --git
a/plugins/wifi.c
b/plugins/wifi.c
index
3e48999
..
f1ee6da
100644
(file)
--- a/
plugins/wifi.c
+++ b/
plugins/wifi.c
@@
-502,6
+502,9
@@
static gboolean autoscan_timeout(gpointer data)
struct autoscan_params *autoscan;
int interval;
+ if (wifi == NULL)
+ return FALSE;
+
autoscan = wifi->autoscan;
if (autoscan->interval <= 0) {