Note that there are some explanatory texts on larger screens.

plurals
  1. POwhat does DetailedState.VERIFYING_POOR_LINK stand for
    primarykey
    data
    text
    <p>In Juice, the enum DetailedState adds a new state named </p> <pre><code>/** Link has poor connectivity. */ VERIFYING_POOR_LINK </code></pre> <p>but what is this state stand for?</p> <p>Having searched for the entire project, I found this:</p> <p>The subclass VerifyingLinkState in WifiStateMachine.java</p> <pre><code>class VerifyingLinkState extends State { @Override public void enter() { if (DBG) log(getName() + "\n"); EventLog.writeEvent(EVENTLOG_WIFI_STATE_CHANGED, getName()); setNetworkDetailedState(DetailedState.VERIFYING_POOR_LINK); mWifiConfigStore.updateStatus(mLastNetworkId, DetailedState.VERIFYING_POOR_LINK); sendNetworkStateChangeBroadcast(mLastBssid); } @Override public boolean processMessage(Message message) { switch (message.what) { case WifiWatchdogStateMachine.POOR_LINK_DETECTED: //stay here break; case WifiWatchdogStateMachine.GOOD_LINK_DETECTED: try { mNwService.enableIpv6(mInterfaceName); } catch (RemoteException re) { loge("Failed to enable IPv6: " + re); } catch (IllegalStateException e) { loge("Failed to enable IPv6: " + e); } setNetworkDetailedState(DetailedState.CONNECTED); mWifiConfigStore.updateStatus(mLastNetworkId, DetailedState.CONNECTED); sendNetworkStateChangeBroadcast(mLastBssid); transitionTo(mConnectedState); break; default: return NOT_HANDLED; } return HANDLED; } } </code></pre> <p>When it is verifying link state, in the <code>enter()</code> function, it sets the DetailedState to</p> <pre><code>DetailedState.VERIFYING_POOR_LINK </code></pre> <p>which will cause the user being confused for getting a state message like the following picture while the connection is really good. <img src="https://i.stack.imgur.com/tMkDS.png" alt="enter image description here"></p> <p>Although this message only stays for a while and then replaced by "Connected" swiftly. But what is this state aim for? what are the risk if I don't set the DetailedState to VERIFYING_POOR_LINK in the <code>enter()</code> function.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload