wifi: network_remove: Clear network pointer in wifi
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 4 Aug 2011 15:35:37 +0000 (17:35 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 4 Aug 2011 16:05:24 +0000 (18:05 +0200)
commit218691d56e12fe16acb52d1b35ccf1a759881d52
treeccb0e6977e7107acfa6b1b4240c6a290e8e54818
parent76359ac3fd89af2002afbf0cf1ebe0aa222bcff8
wifi: network_remove: Clear network pointer in wifi

When a network is destroyed we also have to remove the pointer
from the wifi data structure.

connmand[25303]: plugins/wifi.c:network_remove() network 0x69c350
connmand[25303]: src/network.c:connman_network_unref() network 0x69c350 name bmwnet02 refcount 1
connmand[25303]: src/network.c:connman_network_unref() network 0x69c350 name bmwnet02 refcount 0
connmand[25303]: src/network.c:network_destruct() network 0x69c350 name XXXXX

[...]

connmand[25303]: plugins/wifi.c:interface_state() wifi 0x699d60 interface state 1
connmand[25303]: plugins/wifi.c:is_idle() state 9
connmand[25303]: src/network.c:connman_network_set_associating() network 0x69c350 associating 0
connmand[25303]: src/network.c:connman_network_set_connected() network 0x69c350 connected 0

Fixes BMC#22307
plugins/wifi.c