I mentioned this briefly on IRC today; however, as promised here is a log 
illustrating the issue:

OK, here's an interesting case that seemed mostly fixed by 
http://git.kernel.org/?p=network/connman/connman.git;a=commit;h=39825846a219b47b216d89cc036cf9640aaeead4

Reproduction steps:

        1) Set up an access point with a Class B IP address, say 10.2.40.254.
        2) Set up the access point to provide DHCP leases over a range 
10.2.40.2 through 10.2.40.253.
        3) Set up a lease renewal period of 5-10 minutes.
        4) Allow the device to associate, connect and receive an IP address.
        5) Midway through the lease interval, change the access point to a 
different IP address, say, 10.2.41.254.
        6) Change the access point to issue DHCP leases over a new range, 
10.2.41.2 through 10.2.41.253.
        7) Watch as the access point resets, the connection is lost, the 
connection is regained and as connman tries to get a new DHCP lease.

Prior to the above commit, a new lease would be granted but connman would not 
program the confirmed lease to the interface. So, the above commit is a net 
improvement.

However, now it programs the new, changed lease but still thinks the old lease 
is valid and attempts to keep renewing the old, stale lease.

Start connman and begin associating to an access point using the standard 
network DHCP server with a very long lease time. We get 10.2.0.28 and are 
nominally connected.

        connmand[595]: Connection Manager version 0.73
        connmand[595]: Parsing /etc/connman/main.conf failed: No such file or 
directory
        connmand[595]: Checking loopback interface settings
        connmand[595]: System hostname is fish.local
        connmand[595]: System domainname is domain.actdsltmp
        connmand[595]: Adding NTP server pool.ntp.org
        connmand[595]: Adding default profile
        connmand[595]: Failed to open RFKILL control device
        connmand[595]: NEWLINK len 240 type 16 flags 0x0002 seq 0
        connmand[595]: lo {newlink} index 1 operstate 0 <UNKNOWN>
        connmand[595]: NEWLINK len 248 type 16 flags 0x0002 seq 0
        connmand[595]: wlan0 {create} index 2 type 1 <ETHER>
        connmand[595]: wlan0 {RX} 58271 packets 11821265 bytes
        connmand[595]: wlan0 {TX} 2594 packets 660828 bytes
        connmand[595]: wlan0 {update} flags 4099 <UP>
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 2 <DOWN>
        connmand[595]: wlan0 runs an unsupported 802.11 driver
        connmand[595]: Create interface wlan0 [ wifi ]
        connmand[595]: DONE len 20 type 3 flags 0x0002 seq 0
        connmand[595]: NEWADDR len 48 type 20 flags 0x0002 seq 1
        connmand[595]: NEWLINK len 56 type 16 flags 0x0000 seq 0
        connmand[595]: DONE len 20 type 3 flags 0x0002 seq 1
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 88 type 16 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0002 seq 2
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0002 seq 2
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0002 seq 2
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0002 seq 2
        connmand[595]: DONE len 20 type 3 flags 0x0002 seq 2
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: wlan0 up
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: wlan0 up
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Skipping disconnect of 4865786c6579_managed_psk, network 
is connecting.
        connmand[595]: Requesting connection to network "Hexley" identifier 
"4865786c6579_managed_psk".
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 idle / ipv6 idle => 
service idle new association / type 1 (IPv4) => service association
        connmand[595]: NEWLINK len 56 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 60 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 136 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route ff00:: gw :: scope 0 <UNIVERSE>
        connmand[595]: NEWROUTE len 136 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
        connmand[595]: NEWLINK len 504 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {update} flags 69635 <UP,LOWER_UP>
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 58271 packets 11821265 bytes
        connmand[595]: wlan0 {TX} 2594 packets 660828 bytes
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 5 <DORMANT>
        connmand[595]: NEWLINK len 144 type 16 flags 0x0000 seq 0
        connmand[595]: Periodic (300s) scan for device wifi interface wlan0.
        connmand[595]: NEWLINK len 152 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: network->connected 1
        connmand[595]: service 0x86e40
        connmand[595]: service 0x86e40 ipv4 0x87090 ipv6 0x87100
        connmand[595]: method ipv4 4 (dhcp) ipv6 1 (off)
        connmand[595]: network connected 1
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 association / ipv6 idle 
=> service association new configuration / type 1 (IPv4) => service 
configuration
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: DHCP: switch listening mode (0 ==> 1)
        connmand[595]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67 
interval 3
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 58273 packets 11821543 bytes
        connmand[595]: wlan0 {TX} 2597 packets 661166 bytes
        connmand[595]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
        connmand[595]: wlan0 lower up
        connmand[595]: wlan0 lower up
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 6 <UP>
        connmand[595]: NEWROUTE len 156 type 24 flags 0x0000 seq 0
        connmand[595]: NEWADDR len 64 type 20 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 156 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 156 type 24 flags 0x0000 seq 0
        connmand[595]: DHCP: received DHCPOFFER (0x2) packet (current state 0 
(INIT_SELECTING))
        connmand[595]: DHCP: OFFER of 10.2.0.28 from 10.2.0.1
        connmand[595]: DHCP: start request (retries 0)
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: REQUEST of 10.2.0.28 on wlan0 to 255.255.255.255 
port 67 interval 3
        connmand[595]: DHCP: received DHCPACK (0x5) packet (current state 1 
(REQUESTING))
        connmand[595]: DHCP: switch listening mode (1 ==> 0)
        connmand[595]: DHCP: ACK of 10.2.0.28 from 10.2.0.1
        connmand[595]: Lease available
        connmand[595]: DHCP lease available for service 
wifi_000c294c56a2_4865786c6579_managed_psk
        connmand[595]: c_address: (null)
        connmand[595]: c_gateway: (null)
        connmand[595]: c_prefixlen: 0
        connmand[595]: new address: 10.2.0.28
        connmand[595]: new gateway: 10.2.0.1
        connmand[595]: new prefixlen: 16
        connmand[595]: ip_change: 1
        connmand[595]: ipconfig->address 0x870c0
        connmand[595]: Setting domainname to domain.actdsltmp
        connmand[595]: index 2 address 10.2.0.28 prefix_len 16
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 configuration / ipv6 
idle => service configuration new ready / type 1 (IPv4) => service ready
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Adding DNS server 10.2.0.1
        connmand[595]: before &connected[wifi] 0
        connmand[595]: after &connected[wifi] 1
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 ready / ipv6 idle => 
service ready new online / type 1 (IPv4) => service online
        connmand[595]: Resolving NTP peer pool.ntp.org
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: DHCP: bound to 10.2.0.28 -- renewal in 864000 seconds.
        connmand[595]: DHCP: processed DHCPACK (0x5) packet (new state 2 
(BOUND))
        connmand[595]: NEWADDR len 60 type 20 flags 0x0000 seq 1
        connmand[595]: wlan0 {add} address 10.2.0.28/16 label wlan0 family 2
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87090 type 1 (IPv4) method 4 
(dhcp)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway (nil)
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87100 type 2 (IPv6) method 1 
(off)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway (nil)
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 52 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: DELROUTE len 136 type 25 flags 0x0000 seq 0
        connmand[595]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
        connmand[595]: DELROUTE len 156 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 156 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 136 type 25 flags 0x0000 seq 0
        connmand[595]: wlan0 {del} route ff00:: gw :: scope 0 <UNIVERSE>
        connmand[595]: DELADDR len 64 type 21 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 156 type 25 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 52 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87090 type 1 (IPv4) method 4 
(dhcp)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway 0x868e8
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87100 type 2 (IPv6) method 1 
(off)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway 0x868e8
        connmand[595]: wlan0 {add} route 0.0.0.0 gw 10.2.0.1 scope 0 <UNIVERSE>
        
        [email protected]# iwconfig wlan0
        wlan0   IEEE 802.11ABG  ESSID:"Hexley"  
                          Mode:Managed  Channel:10  Access Point: 
00:1B:63:2C:07:2B   
                          Tx-Power:-51   Sensitivity=-80 dBm  
                          RTS thr=4096 B   Fragment thr=4096 B   
                          Encryption 
key:327B-0CE9-58D8-FDDE-142B-187D-09CD-3BDF   Security mode:restricted
                          Link Quality=0/0  Signal level=-53 dBm  
                          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid 
frag:0
                          Tx excessive retries:0  Invalid misc:0   Missed 
beacon:0
        
        [email protected]# ifconfig wlan0
        wlan0   Link encap:Ethernet  HWaddr 00:0c:29:4c:56:a2  
                          inet addr:10.2.0.28  Bcast:10.2.255.255  
Mask:255.255.0.0
                          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                          RX packets:58317 errors:0 dropped:0 overruns:0 frame:0
                          TX packets:2608 errors:0 dropped:0 overruns:0 
carrier:0
                          collisions:0 txqueuelen:100 
                          RX bytes:11828097 (11.2 MiB)  TX bytes:663022 (647.4 
KiB)
        
        [email protected]# ip addr show dev wlan0
        2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 100
                link/ether 00:0c:29:4c:56:a2 brd ff:ff:ff:ff:ff:ff
                inet 10.2.0.28/16 brd 10.2.255.255 scope global wlan0

Now, we go in and reconfigure the access point as described above, issuing DHCP 
addresses in the range 10.2.40.2 to 10.2.40.253 with 10 minute lease times.

        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 58394 packets 11839003 bytes
        connmand[595]: wlan0 {TX} 2618 packets 663988 bytes
        connmand[595]: Failed to store statistics for 
wifi_000c294c56a2_4865786c6579_managed_psk
        connmand[595]: wlan0 {update} flags 4099 <UP>
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Clear IPv6 address error: Invalid argument
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 2 <DOWN>
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {update} flags 4163 <UP,RUNNING>
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: network->connected 0
        connmand[595]: service 0x86e40
        connmand[595]: service 0x86e40 ipv4 0x87090 ipv6 0x87100
        connmand[595]: method ipv4 4 (dhcp) ipv6 1 (off)
        connmand[595]: network connected 0
        connmand[595]: service 0x86e40
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 online / ipv6 idle => 
service online new disconnect / type 1 (IPv4) => service disconnect
        connmand[595]: Disabling DNS server 10.2.0.1
        connmand[595]: Removing DNS server 10.2.0.1
        connmand[595]: before &connected[wifi] 1
        connmand[595]: after &connected[wifi] 0
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 disconnect / ipv6 idle 
=> service disconnect new disconnect / type 2 (IPv6) => service disconnect
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: Removing default gateway route failed (No such process)
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 disconnect / ipv6 
disconnect => service disconnect new idle / type 1 (IPv4) => service disconnect
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 idle / ipv6 disconnect 
=> service disconnect new idle / type 2 (IPv6) => service idle
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: Skipping disconnect of 4865786c6579_managed_psk, network 
is connecting.
        connmand[595]: Requesting connection to network "Hexley" identifier 
"4865786c6579_managed_psk".
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 idle / ipv6 idle => 
service idle new association / type 1 (IPv4) => service association
        connmand[595]: DELADDR len 60 type 21 flags 0x0000 seq 1
        connmand[595]: wlan0 {del} address 10.2.0.28/16 label wlan0
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: wlan0 {del} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {update} flags 4099 <UP>
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Clear IPv6 address error: Invalid argument
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: Periodic (300s) scan for device wifi interface wlan0.
        connmand[595]: service 0x85c60 identifier 0x81c70 passphrase (nil)
        connmand[595]: service 0x82400 identifier 0x82620 passphrase (nil)
        connmand[595]: service 0x87d88 identifier 0x87f40 passphrase (nil)
        connmand[595]: NEWLINK len 56 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 60 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 64 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 56 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 60 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 64 type 16 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 136 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route ff00:: gw :: scope 0 <UNIVERSE>
        connmand[595]: NEWROUTE len 136 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
        connmand[595]: NEWLINK len 504 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {update} flags 69635 <UP,LOWER_UP>
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 58394 packets 11839003 bytes
        connmand[595]: wlan0 {TX} 2618 packets 663988 bytes
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 5 <DORMANT>
        connmand[595]: NEWLINK len 144 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 152 type 16 flags 0x0000 seq 0
        connmand[595]: network->connected 1
        connmand[595]: service 0x86e40
        connmand[595]: service 0x86e40 ipv4 0x87090 ipv6 0x87100
        connmand[595]: method ipv4 4 (dhcp) ipv6 1 (off)
        connmand[595]: network connected 1
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 association / ipv6 idle 
=> service association new configuration / type 1 (IPv4) => service 
configuration
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: method 4
        connmand[595]: ipconfig->address 0x870c0
        
Connman does a release of 10.2.0.8 to 10.2.0.1, correctly.      
        
        connmand[595]: DHCP: switch listening mode (0 ==> 0)
        connmand[595]: DHCP: RELEASE of 10.2.0.28 on wlan0 to 10.2.0.1 port 67
        connmand[595]: DHCP: switch listening mode (0 ==> 0)
        connmand[595]: DHCP: switch listening mode (0 ==> 1)
        connmand[595]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67 
interval 3
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 58396 packets 11839281 bytes
        connmand[595]: wlan0 {TX} 2620 packets 664236 bytes
        connmand[595]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
        connmand[595]: wlan0 lower up
        connmand[595]: wlan0 lower up
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 6 <UP>
        
We are now associated with the access point now that it's back up with its new 
configuration. We receive 10.2.40.2 with a 600 second lease time.
        
        connmand[595]: DHCP: received DHCPOFFER (0x2) packet (current state 0 
(INIT_SELECTING))
        connmand[595]: DHCP: OFFER of 10.2.40.2 from 10.2.40.254
        connmand[595]: DHCP: start request (retries 0)
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: REQUEST of 10.2.40.2 on wlan0 to 255.255.255.255 
port 67 interval 3
        connmand[595]: DHCP: received DHCPACK (0x5) packet (current state 1 
(REQUESTING))
        connmand[595]: DHCP: switch listening mode (1 ==> 0)
        connmand[595]: DHCP: ACK of 10.2.40.2 from 10.2.40.254
        connmand[595]: Lease available
        connmand[595]: DHCP lease available for service 
wifi_000c294c56a2_4865786c6579_managed_psk
        
Connman recognizes that we have a changed configuration and we program the new 
IP configuration to the interface.
        
        connmand[595]: c_address: (null)
        connmand[595]: c_gateway: (null)
        connmand[595]: c_prefixlen: 0
        connmand[595]: new address: 10.2.40.2
        connmand[595]: new gateway: 10.2.0.1
        connmand[595]: new prefixlen: 16
        connmand[595]: ip_change: 1
        connmand[595]: ipconfig->address 0x870c0
        connmand[595]: index 2 address 10.2.40.2 prefix_len 16
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 configuration / ipv6 
idle => service configuration new ready / type 1 (IPv4) => service ready
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Adding DNS server 10.2.0.1
        connmand[595]: before &connected[wifi] 0
        connmand[595]: after &connected[wifi] 1
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 ready / ipv6 idle => 
service ready new online / type 1 (IPv4) => service online
        connmand[595]: Resolving NTP peer pool.ntp.org
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: DHCP: bound to 10.2.40.2 -- renewal in 600 seconds.
        connmand[595]: DHCP: processed DHCPACK (0x5) packet (new state 2 
(BOUND))
        
The new DHCP configuration is bound. We should not be renewing old, stale 
leases any more.
        
        connmand[595]: NEWADDR len 60 type 20 flags 0x0000 seq 1
        connmand[595]: wlan0 {add} address 10.2.40.2/16 label wlan0 family 2
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87090 type 1 (IPv4) method 4 
(dhcp)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway (nil)
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87100 type 2 (IPv6) method 1 
(off)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway (nil)
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 52 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: NEWROUTE len 52 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87090 type 1 (IPv4) method 4 
(dhcp)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway 0x7cac8
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x86e40 ipconfig 0x87100 type 2 (IPv6) method 1 
(off)
        connmand[595]: ipconfig->system 0x870e0
        connmand[595]: ipconfig->system->local 0x87320
        connmand[595]: ipconfig->system->gateway 0x7cac8
        connmand[595]: wlan0 {add} route 0.0.0.0 gw 10.2.0.1 scope 0 <UNIVERSE>
        
        [email protected]# 
        [email protected]# ifconfig wlan0 
        wlan0   Link encap:Ethernet  HWaddr 00:0c:29:4c:56:a2  
                          inet addr:10.2.40.2  Bcast:10.2.255.255  
Mask:255.255.0.0
                          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                          RX packets:59201 errors:0 dropped:0 overruns:0 frame:0
                          TX packets:2643 errors:0 dropped:0 overruns:0 
carrier:0
                          collisions:0 txqueuelen:100 
                          RX bytes:11920295 (11.3 MiB)  TX bytes:667252 (651.6 
KiB)
        
        [email protected]# iwconfig  wlan0
        wlan0   IEEE 802.11ABG  ESSID:"Hexley"  
                          Mode:Managed  Channel:11  Access Point: 
00:1B:63:2C:07:2B   
                          Tx-Power:-51   Sensitivity=-80 dBm  
                          RTS thr=4096 B   Fragment thr=4096 B   
                          Encryption 
key:4FEE-2222-7347-6C5E-11BA-01AB-11AF-0D4A   Security mode:restricted
                          Link Quality=0/0  Signal level=-55 dBm  
                          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid 
frag:0
                          Tx excessive retries:0  Invalid misc:0   Missed 
beacon:0
        
        [email protected]# ip addr show dev wlan0
        2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 100
                link/ether 00:0c:29:4c:56:a2 brd ff:ff:ff:ff:ff:ff
                inet 10.2.40.2/16 brd 10.2.255.255 scope global wlan0

We now deconfigure the access point as a DHCP server and the device should 
default back to the primary network DHCP server when the access point comes 
back up.

        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 59726 packets 12001730 bytes
        connmand[595]: wlan0 {TX} 2681 packets 670851 bytes
        connmand[595]: Failed to store statistics for 
wifi_000c294c56a2_4865786c6579_managed_psk
        connmand[595]: wlan0 {update} flags 4099 <UP>
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Clear IPv6 address error: Invalid argument
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 2 <DOWN>
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {update} flags 4163 <UP,RUNNING>
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: network->connected 0
        connmand[595]: service 0x86e40
        connmand[595]: service 0x86e40 ipv4 0x87090 ipv6 0x87100
        connmand[595]: method ipv4 4 (dhcp) ipv6 1 (off)
        connmand[595]: network connected 0
        connmand[595]: service 0x86e40
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 online / ipv6 idle => 
service online new disconnect / type 1 (IPv4) => service disconnect
        connmand[595]: Disabling DNS server 10.2.0.1
        connmand[595]: Removing DNS server 10.2.0.1
        connmand[595]: before &connected[wifi] 1
        connmand[595]: after &connected[wifi] 0
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 disconnect / ipv6 idle 
=> service disconnect new disconnect / type 2 (IPv6) => service disconnect
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: Removing default gateway route failed (No such process)
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 disconnect / ipv6 
disconnect => service disconnect new idle / type 1 (IPv4) => service disconnect
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 idle / ipv6 disconnect 
=> service disconnect new idle / type 2 (IPv6) => service idle
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: Skipping disconnect of 4865786c6579_managed_psk, network 
is connecting.
        connmand[595]: Requesting connection to network "Hexley" identifier 
"4865786c6579_managed_psk".
        connmand[595]: __connman_service_indicate_state: service 0x86e40 
wifi_000c294c56a2_4865786c6579_managed_psk new_state 2 (association) type 1 
(IPv4)
        connmand[595]: service 0x86e40 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 idle / ipv6 idle => 
service idle new association / type 1 (IPv4) => service association
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: DELADDR len 60 type 21 flags 0x0000 seq 1
        connmand[595]: wlan0 {del} address 10.2.40.2/16 label wlan0
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: wlan0 {del} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 60 type 25 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {update} flags 4099 <UP>
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: Clear IPv6 address error: Invalid argument
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: Periodic (300s) scan for device wifi interface wlan0.
        connmand[595]: service 0x82768 identifier 0x82cc8 passphrase (nil)
        connmand[595]: service 0x88ad0 identifier 0x88cd0 passphrase (nil)
        connmand[595]: service 0x91e78 identifier 0x91dc8 passphrase (nil)
        connmand[595]: service 0x84c60 identifier 0x7c240 passphrase (nil)
        connmand[595]: service 0x90688 identifier 0x90888 passphrase (nil)
        connmand[595]: service 0x88588 identifier 0x88480 passphrase (nil)
        connmand[595]: Periodic (300s) scan for device wifi interface wlan0.
        connmand[595]: service 0x86e40 identifier 0x87060 passphrase 0x8f5a0
        connmand[595]: service 0x8ede8 identifier 0x8f008 passphrase (nil)
        connmand[595]: service 0x8c8f8 identifier 0x8ca70 passphrase (nil)
        connmand[595]: service 0x8d818 identifier 0x8da38 passphrase (nil)
        connmand[595]: service 0x7dd60 identifier 0x7dcc0 passphrase (nil)
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: wlan0 up
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x874e0 identifier 0x8eaf0 passphrase 0x88360
        connmand[595]: wlan0 up
        connmand[595]: wlan0 lower down
        connmand[595]: service 0x874e0 identifier 0x8eaf0 passphrase 0x88360
        connmand[595]: Skipping disconnect of 4865786c6579_managed_psk, network 
is connecting.
        connmand[595]: Requesting connection to network "Hexley" identifier 
"4865786c6579_managed_psk".
        connmand[595]: service 0x874e0 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 idle / ipv6 idle => 
service idle new association / type 1 (IPv4) => service association
        connmand[595]: NEWLINK len 56 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 60 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 64 type 16 flags 0x0000 seq 0
        connmand[595]: service 0x874e0 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 association / ipv6 idle 
=> service association new failure / type 1 (IPv4) => service failure
        connmand[595]: service 0x874e0 identifier 0x8eaf0 passphrase 0x88360
        connmand[595]: Requested scan for device wifi interface wlan0.
        connmand[595]: NEWLINK len 56 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 60 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: service 0x874e0 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 failure / ipv6 idle => 
service failure new association / type 1 (IPv4) => service association
        connmand[595]: NEWLINK len 64 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 59726 packets 12001730 bytes
        connmand[595]: wlan0 {TX} 2681 packets 670851 bytes
        connmand[595]: wlan0 {update} flags 69635 <UP,LOWER_UP>
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 5 <DORMANT>
        connmand[595]: NEWLINK len 144 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 152 type 16 flags 0x0000 seq 0
        connmand[595]: network->connected 1
        connmand[595]: service 0x874e0
        connmand[595]: service 0x874e0 ipv4 0x76290 ipv6 0x7dcc0
        connmand[595]: method ipv4 4 (dhcp) ipv6 1 (off)
        connmand[595]: network connected 1
        connmand[595]: service 0x874e0 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 association / ipv6 idle 
=> service association new configuration / type 1 (IPv4) => service 
configuration
        connmand[595]: mmap error Invalid argument for 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data
        connmand[595]: 
/var/lib/connman/stats/wifi_000c294c56a2_4865786c6579_managed_psk.data might be 
on a file system, such as JFFS2, that does not allow shared writable mappings.
        connmand[595]: DHCP: switch listening mode (0 ==> 1)
        
We are associated to the access point again. A broadcast DHCP discovery goes 
out.
        
        connmand[595]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67 
interval 3
        connmand[595]: NEWLINK len 68 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 212 type 16 flags 0x0000 seq 0
        connmand[595]: NEWLINK len 248 type 16 flags 0x0000 seq 0
        connmand[595]: wlan0 {RX} 59728 packets 12002008 bytes
        connmand[595]: wlan0 {TX} 2683 packets 671099 bytes
        connmand[595]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
        connmand[595]: wlan0 lower up
        connmand[595]: wlan0 lower up
        connmand[595]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 
1500
        connmand[595]: wlan0 {newlink} index 2 operstate 6 <UP>
        connmand[595]: NEWROUTE len 156 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 156 type 24 flags 0x0000 seq 0
        
The primary network DHCP server offers us the same 10.2.0.28 we had previously.
        
        connmand[595]: DHCP: received DHCPOFFER (0x2) packet (current state 0 
(INIT_SELECTING))
        connmand[595]: DHCP: OFFER of 10.2.0.28 from 10.2.0.1
        connmand[595]: DHCP: start request (retries 0)
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: REQUEST of 10.2.0.28 on wlan0 to 255.255.255.255 
port 67 interval 3
        connmand[595]: DHCP: received DHCPACK (0x5) packet (current state 1 
(REQUESTING))
        connmand[595]: DHCP: switch listening mode (1 ==> 0)
        connmand[595]: DHCP: ACK of 10.2.0.28 from 10.2.0.1
        connmand[595]: Lease available
        connmand[595]: DHCP lease available for service 
wifi_000c294c56a2_4865786c6579_managed_psk
        connmand[595]: c_address: (null)
        connmand[595]: c_gateway: (null)
        connmand[595]: c_prefixlen: 0
        connmand[595]: new address: 10.2.0.28
        connmand[595]: new gateway: 10.2.0.1
        connmand[595]: new prefixlen: 16
        connmand[595]: ip_change: 1
        connmand[595]: ipconfig->address 0x84590
        connmand[595]: Setting domainname to domain.actdsltmp
        connmand[595]: index 2 address 10.2.0.28 prefix_len 16
        connmand[595]: Deleting host route failed (No such process)
        connmand[595]: service 0x874e0 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 configuration / ipv6 
idle => service configuration new ready / type 1 (IPv4) => service ready
        connmand[595]: service 0x874e0 identifier 0x8eaf0 passphrase 0x88360
        connmand[595]: Adding DNS server 10.2.0.1
        connmand[595]: before &connected[wifi] 0
        connmand[595]: after &connected[wifi] 1
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: service 0x874e0 
(wifi_000c294c56a2_4865786c6579_managed_psk) state ipv4 ready / ipv6 idle => 
service ready new online / type 1 (IPv4) => service online
        connmand[595]: Resolving NTP peer pool.ntp.org
        connmand[595]: Enabling DNS server 10.2.0.1
        connmand[595]: DHCP: bound to 10.2.0.28 -- renewal in 864000 seconds.
        connmand[595]: DHCP: processed DHCPACK (0x5) packet (new state 2 
(BOUND))
        
The new DHCP configuration is programmed into the interface and bound with a 
very long lease time. We should not be renewing leases for 10.2.40.2.
        
        connmand[595]: NEWADDR len 60 type 20 flags 0x0000 seq 1
        connmand[595]: wlan0 {add} address 10.2.0.28/16 label wlan0 family 2
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x874e0 ipconfig 0x76290 type 1 (IPv4) method 4 
(dhcp)
        connmand[595]: ipconfig->system 0x938f0
        connmand[595]: ipconfig->system->local 0x80a60
        connmand[595]: ipconfig->system->gateway (nil)
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x874e0 ipconfig 0x7dcc0 type 2 (IPv6) method 1 
(off)
        connmand[595]: ipconfig->system 0x938f0
        connmand[595]: ipconfig->system->local 0x80a60
        connmand[595]: ipconfig->system->gateway (nil)
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: NEWROUTE len 60 type 24 flags 0x0000 seq 0
        connmand[595]: NEWROUTE len 52 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 {add} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
        connmand[595]: DELROUTE len 136 type 25 flags 0x0000 seq 0
        connmand[595]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
        connmand[595]: DELROUTE len 156 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 156 type 25 flags 0x0000 seq 0
        connmand[595]: DELROUTE len 136 type 25 flags 0x0000 seq 0
        connmand[595]: wlan0 {del} route ff00:: gw :: scope 0 <UNIVERSE>
        connmand[595]: NEWROUTE len 52 type 24 flags 0x0000 seq 0
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x874e0 ipconfig 0x76290 type 1 (IPv4) method 4 
(dhcp)
        connmand[595]: ipconfig->system 0x938f0
        connmand[595]: ipconfig->system->local 0x80a60
        connmand[595]: ipconfig->system->gateway 0x88788
        connmand[595]: wlan0 ip bound
        connmand[595]: service 0x874e0 ipconfig 0x7dcc0 type 2 (IPv6) method 1 
(off)
        connmand[595]: ipconfig->system 0x938f0
        connmand[595]: ipconfig->system->local 0x80a60
        connmand[595]: ipconfig->system->gateway 0x88788
        connmand[595]: wlan0 {add} route 0.0.0.0 gw 10.2.0.1 scope 0 <UNIVERSE>
        
Trouble ahead, connman starts a lease renewal for 10.2.40.2, long ago stale.
        
        connmand[595]: DHCP: start renew timeout
        connmand[595]: DHCP: switch listening mode (0 ==> 2)
        connmand[595]: DHCP: sending DHCP renew request
        connmand[595]: DHCP: REQUEST of 10.2.40.2 on wlan0 to 10.2.40.254 port 
67 interval 3

No response, as 10.2.40.254 is gone. Connman tries again....

        connmand[595]: DHCP: start renew timeout
        connmand[595]: DHCP: switch listening mode (2 ==> 2)
        connmand[595]: DHCP: sending DHCP renew request
        connmand[595]: DHCP: REQUEST of 10.2.40.2 on wlan0 to 10.2.40.254 port 
67 interval 3
        connmand[595]: Periodic (300s) scan for device wifi interface wlan0.
        
And again...
        
        connmand[595]: DHCP: start renew timeout
        connmand[595]: DHCP: switch listening mode (2 ==> 2)
        connmand[595]: DHCP: sending DHCP renew request
        connmand[595]: DHCP: REQUEST of 10.2.40.2 on wlan0 to 10.2.40.254 port 
67 interval 3

And again...

        connmand[595]: DHCP: start renew timeout
        connmand[595]: DHCP: switch listening mode (2 ==> 2)
        connmand[595]: DHCP: start rebound
        connmand[595]: DHCP: start rebound timeout
        connmand[595]: DHCP: switch listening mode (2 ==> 1)
        connmand[595]: DHCP: sending DHCP rebound request
        connmand[595]: DHCP: REQUEST of 10.2.40.2 on wlan0 to 255.255.255.255 
port 67 interval 3
        connmand[595]: DHCP: start rebound timeout
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: sending DHCP rebound request
        connmand[595]: DHCP: REQUEST of 10.2.40.2 on wlan0 to 255.255.255.255 
port 67 interval 3
        connmand[595]: DHCP: start rebound timeout
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        
Connman decides it should start DHCP again even though we already have a valid 
DHCP lease for 10.2.0.28.
        
        connmand[595]: DHCP: restart DHCP (retries 0)
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67 
interval 3
        connmand[595]: DHCP: DISCOVER on wlan0 to 255.255.255.255 port 67 
interval 3
        
The DHCP server obliges and offers us 10.2.0.126.
        
        connmand[595]: DHCP: received DHCPOFFER (0x2) packet (current state 0 
(INIT_SELECTING))
        connmand[595]: DHCP: OFFER of 10.2.0.126 from 10.2.0.1
        connmand[595]: DHCP: start request (retries 0)
        connmand[595]: DHCP: switch listening mode (1 ==> 1)
        connmand[595]: DHCP: REQUEST of 10.2.0.126 on wlan0 to 255.255.255.255 
port 67 interval 3
        connmand[595]: DHCP: received DHCPACK (0x5) packet (current state 1 
(REQUESTING))
        connmand[595]: DHCP: switch listening mode (1 ==> 0)
        connmand[595]: DHCP: ACK of 10.2.0.126 from 10.2.0.1
        connmand[595]: Lease available
        connmand[595]: Can not lookup service
        connmand[595]: DHCP: bound to 10.2.0.126 -- renewal in 864000 seconds.
        connmand[595]: DHCP: processed DHCPACK (0x5) packet (new state 2 
(BOUND))
        
The new lease is ignored by the interface since 10.2.0.28 is already programmed:

        # ifconfig wlan0
        wlan0   Link encap:Ethernet  HWaddr 00:0c:29:4c:56:a2  
                          inet addr:10.2.0.28  Bcast:10.2.255.255  
Mask:255.255.0.0
                          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                          RX packets:104334 errors:0 dropped:0 overruns:0 
frame:0
                          TX packets:3858 errors:0 dropped:0 overruns:0 
carrier:0
                          collisions:0 txqueuelen:100 
                          RX bytes:19109027 (18.2 MiB)  TX bytes:793191 (774.6 
KiB)
        
        # iwconfig wlan0
        wlan0   IEEE 802.11ABG  ESSID:"Hexley"  
                          Mode:Managed  Channel:11  Access Point: 
00:1B:63:2C:07:2B   
                          Tx-Power:-51   Sensitivity=-80 dBm  
                          RTS thr=4096 B   Fragment thr=4096 B   
                          Encryption 
key:A2A0-B5DA-ECEF-4EA9-3249-82CE-427C-4CD1   Security mode:restricted
                          Link Quality=0/0  Signal level=-57 dBm  
                          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid 
frag:0
                          Tx excessive retries:0  Invalid misc:0   Missed 
beacon:0
        
        # ip addr show dev wlan0
        2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP qlen 100
                link/ether 00:0c:29:4c:56:a2 brd ff:ff:ff:ff:ff:ff
                inet 10.2.0.28/16 brd 10.2.255.255 scope global wlan0

Best,

Grant
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to