[Moto X Android Development] jason111o:
After shutting down portable hotspot the notification icon remains until reboot. USB tethering the notification icon is removed as it should.

xt1050

RR v5.2.6

Logcat from time of switching off portable tethering:

--------- beginning of main

D/Tethering( 747): WIFI_AP_STATE_CHANGED: wifiApState=10

D/CommandListener( 244): Setting iface cfg

D/CommandListener( 244): Trying to bring up wlan0

D/Tethering( 747): Untethering wlan0

D/Tethering( 747): TetheredState.processMessage what=3

W/auditd ( 311): type=1325 audit(0.0:329): table=filter family=2 entries=62

V/NatController( 244): runCmd(/system/bin/iptables -D natctrl_FORWARD -i rmnet0 -o wlan0 -m state --state ESTABLISHED,RELATED -g natctrl_tether_counters) res=0

W/auditd ( 311): type=1325 audit(0.0:330): table=filter family=2 entries=61

V/NatController( 244): runCmd(/system/bin/iptables -D natctrl_FORWARD -i wlan0 -o rmnet0 -m state --state INVALID -j DROP) res=0

W/auditd ( 311): type=1325 audit(0.0:331): table=filter family=2 entries=60

V/NatController( 244): runCmd(/system/bin/iptables -D natctrl_FORWARD -i wlan0 -o rmnet0 -g natctrl_tether_counters) res=0

D/Tethering( 747): sendUpstreamIfaceChangeBroadcast upstreamIface:rmnet0 tetheredIface:wlan0 IP Type: 2 update_typeUPSTREAM_IFACE_REMOVED

D/CommandListener( 244): TetherCmd::runCommand. argc: 4. argv[0]: tether

D/TetherController( 244): untetherInterface(wlan0)

D/TetherController( 244): int TetherController::getIfaceIndexForIface(const char *)() File path is /sys/class/net/rmnet0/ifindex

D/TetherController( 244): int TetherController::getIfaceIndexForIface(const char *)() 3

D/TetherController( 244): int TetherController::getIfaceIndexForIface(const char *)() Interface index for interface rmnet0 is 3

D/TetherController( 244): int TetherController::configureV6RtrAdv(): Upstream Iface: rmnet0 iface index: 3

D/TetherController( 244): Router advertisement daemon stopped

D/TetherController( 244): Router advertisement daemon running

D/TetherController( 244): Sending update msg to dnsmasq [update_ifaces:rndis0]

E/TetherController( 6537): Unable to exec /system/bin/radish: (No such file or directory)

W/auditd ( 311): type=1325 audit(0.0:332): table=mangle family=2 entries=20

W/auditd ( 311): type=1325 audit(0.0:333): table=mangle family=10 entries=16

D/Tethering( 747): Untethered wlan0

D/Tethering( 747): sendTetherStateChangedBroadcast 1, 1, 0

D/BluetoothAdapter( 3278): 254199350: getState() : mService = null. Returning STATE_OFF

D/QsoftapCmd( 244): Got softap stopap command we are passing on

--------- beginning of system

I/ValidateNoPeople( 747): skipping global notification

D/Tethering( 747): TetherModeAliveState.processMessage what=2

D/Tethering( 747): TetherModeAlive removing notifyee wlan0 - InitialState - Available - lastError =0

D/Tethering( 747): TetherModeAlive still has 1 live requests:

D/Tethering( 747): rndis0 - TetheredState - Tethered - lastError =0

D/SoftapController( 244): Stopping the SoftAP service...

D/Tethering( 747): InitialState.processMessage what=4

D/Tethering( 747): sendTetherStateChangedBroadcast 0, 1, 0

D/BluetoothAdapter( 3278): 254199350: getState() : mService = null. Returning STATE_OFF

D/SoftapController( 244): SoftAP stopped successfully

E/NetdConnector( 747): NDC Command {293 softap stopap} took too long (764ms)

E/NetdConnector( 747): NDC Command {294 bandwidth gettetherstats} took too long (799ms)

D/QsoftapCmd( 244): Got softap fwreload command we are passing on

E/WifiStateMachine( 747): Exception in stopAccessPoint()

D/Tethering( 747): WIFI_AP_STATE_CHANGED: wifiApState=11

I/MDMCTBK ( 253): NetlinkHandler, subsys is net and action is remove

I/MDMCTBK ( 253): NetlinkHandler, interfaceRemoved

I/MDMCTBK ( 253): MdmCutbackHndler,interfaceRemoved+

I/MDMCTBK ( 253): MdmCutbackHndler,interfaceRemoved+,wlan interface removed

E/MDMCTBK ( 253): MdmCutbackHndler,interfaceRemoved, Mifi Status =0, Wifi Status = 0, SolReq=0

I/MDMCTBK ( 253): MdmCutbackHndler,interfaceRemoved, calling setWifiCutback

I/MDMCTBK ( 253): MdmCutbackHndler, setWifiCutback vc=0, dc=1, wf=0, mf=0, wfd=0

I/MDMCTBK ( 253): MdmCutbackHndler, setWifiCutback, No Wifi

I/MDMCTBK ( 253): MdmCutbackHndler Status: Qmi =1, cg=0, ep=0, vc=0, dc=1, cn=1, wf=0, mf=0, wfd=0, apm=0, usb=1, stopqmi=0

I/MDMCTBK ( 253): setSarCtrl:set SAR over QMI, conn:1, ep:0,wf:0, mf:0, chrg:1

I/MDMCTBK ( 253): send SAR ctrl over QMI