wifistatemachine instruction

base=131072
CMD_START_SUPPLICANT=131083
CMD_STOP_SUPPLICANT =131084
CMD_START_DRIVER=131085
CMD_STOP_DRIVER=131086
CMD_STATIC_IP_SUCCESS=131087  //Indicates Static IP succeeded
CMD_STATIC_IP_FAILURE=131088
CMD_STOP_SUPPLICANT_FAILED=131089  //Indicates supplicant stop failed
CMD_DELAYED_STOP_DRIVER=131090  //Delayed stop to avoid shutting down driver too quick
CMD_DRIVER_START_TIMED_OUT=131091  //A delayed message sent to start driver when it fail to come up
CMD_CAPTIVE_CHECK_COMPLETE=131092  //Ready to switch to network as default

CMD_START_AP =131093 //Start the soft access point
CMD_START_AP_SUCCESS=131094  //Indicates soft ap start succeeded
CMD_START_AP_FAILURE=131095  //Indicates soft ap start failed
CMD_STOP_AP=131096  //Stop the soft access point
CMD_SET_AP_CONFIG=131097  //Set the soft access point configuration
CMD_SET_AP_CONFIG_COMPLETED=131098  //Soft access point configuration set completed
CMD_REQUEST_AP_CONFIG=131099  //Request the soft access point configuration
CMD_RESPONSE_AP_CONFIG=131100  //Response to access point configuration request
CMD_TETHER_STATE_CHANGE=131101  //Invoked when getting a tether state change notification 
CMD_TETHER_NOTIFICATION_TIMED_OUT=131102  //A delayed message sent to indicate tether state change failed to arrive 
CMD_BLUETOOTH_ADAPTER_STATE_CHANGE=131103  

/* Supplicant commands */
CMD_PING_SUPPLICANT=131123 //Is supplicant alive ?
CMD_ADD_OR_UPDATE_NETWORK=131124  //Add/update a network configuration
CMD_REMOVE_NETWORK=131125  //Delete a network
CMD_ENABLE_NETWORK=131126  //Enable a network. The device will attempt a connection to the given network.
CMD_ENABLE_ALL_NETWORKS=131127  //Enable all networks
CMD_BLACKLIST_NETWORK=131128  //Blacklist network. De-prioritizes the given BSSID for connection
CMD_CLEAR_BLACKLIST=131129  //Clear the blacklist network list
CMD_SAVE_CONFIG=131130  //Save configuration
CMD_GET_CONFIGURED_NETWORKS=131131  //Get configured networks

/* Supplicant commands after driver start*/
CMD_START_SCAN=131143  //Initiate a scan
CMD_SET_OPERATIONAL_MODE=131144  //Set operational mode. CONNECT, SCAN ONLY, SCAN_ONLY with Wi-Fi off mode
CMD_DISCONNECT=131145  //Disconnect from a network
CMD_RECONNECT=131146  //Reconnect to a network
CMD_REASSOCIATE=131147  //Reassociate to a network

/* Controls suspend mode optimizations
     *
     * When high perf mode is enabled, suspend mode optimizations are disabled
     *
     * When high perf mode is disabled, suspend mode optimizations are enabled
     *
     * Suspend mode optimizations include:
     * - packet filtering
     * - turn off roaming
     * - DTIM wake up settings
     */
CMD_SET_HIGH_PERF_MODE=131149  
CMD_SET_COUNTRY_CODE=131152  //Set the country code
CMD_ENABLE_RSSI_POLL=131154  //Enables RSSI poll
CMD_RSSI_POLL=131155   //RSSI poll
CMD_START_PACKET_FILTERING=131156  //Set up packet filtering
CMD_STOP_PACKET_FILTERING=131157  //Clear packet filter
CMD_SET_SUSPEND_OPT_ENABLED=131158  //Enable suspend mode optimizations in the driver
CMD_NO_NETWORKS_PERIODIC_SCAN=131160  //When there are no saved networks, we do a periodic scan to notify user of an open network 

CMD_SET_FREQUENCY_BAND=131162  //Set the frequency band
CMD_ENABLE_BACKGROUND_SCAN=131163  //Enable background scan for configured networks
CMD_ENABLE_TDLS=131164  //Enable TDLS on a specific MAC address 

/* Commands from/to the SupplicantStateTracker */
/* Reset the supplicant state tracker */
CMD_RESET_SUPPLICANT_STATE=131183  

/* P2p commands */
    /* We are ok with no response here since we wont do much with it anyway */
CMD_ENABLE_P2P=131203
/*In order to shut down supplicant cleanly, we wait till p2p has been disabled*/
CMD_DISABLE_P2P_REQ =131204  
CMD_DISABLE_P2P_RSP=131205
CMD_BOOT_COMPLETED=131206

/* change the batch scan settings.
     * arg1 = responsible UID
     * arg2 = csph (channel scans per hour)
     * obj = bundle with the new settings and the optional worksource
     */
CMD_SET_BATCHED_SCAN =131207
CMD_START_NEXT_BATCHED_SCAN=131208
CMD_POLL_BATCHED_SCAN=131209
CMD_IP_CONFIGURATION_SUCCESSFUL=131210  //We now have a valid IP configuration
CMD_IP_CONFIGURATION_LOST=131211  //We no longer have a valid IP configuration

/* Link configuration (IP address, DNS, ...) changes */
    /* An new IP address was added to our interface, or an existing IP address was updated */
CMD_IP_ADDRESS_UPDATED=131212
CMD_IP_ADDRESS_REMOVED=131213  //An IP address was removed from our interface
CMD_RELOAD_TLS_AND_RECONNECT=131214  //Reload all networks and reconnect

/* Added For SoftAp advance Feature */
CMD_AP_BLOCK_STATION=131215
CMD_AP_UNBLOCK_STATION=131216
CMD_AP_GET_BLOCK_STATION=131217

 /* Added For Wifi 3wire Feature*/
CMD_WIFI_SET_3WIRE_ENABLED=131218
CMD_SCREEN_CHANGED=131221
CMD_SET_SCAN_ALARM=131222
CMD_DNS_ADDRESS_ADDED=131223
CMD_ROUTE_UPDATED=131224
CMD_ROUTE_REMOVED=131225

 /* Wifi state machine modes of operation */

CONNECT_MODE=1  //CONNECT_MODE - connect to any 'known' AP when it becomes available 
SCAN_ONLY_MODE =2  //SCAN_ONLY_MODE - don't connect to any APs; scan, but only while apps hold lock
SCAN_ONLY_WITH_WIFI_OFF_MODE=3  //SCAN_ONLY_WITH_WIFI_OFF - scan, but don't connect to any APs 

/*wifimonitor.java*/
SUP_CONNECTION_EVENT=147457  //Connection to supplicant established
SUP_DISCONNECTION_EVENT=147458  //Connection to supplicant lost
NETWORK_CONNECTION_EVENT=147459  //Network connection completed
NETWORK_DISCONNECTION_EVENT=147460  //Network disconnection completed
SCAN_RESULTS_EVENT=147461  //Scan results are available
SUPPLICANT_STATE_CHANGE_EVENT=147462  //Supplicate state changed
AUTHENTICATION_FAILURE_EVENT=147463  //Password failure and EAP authentication failure 
WPS_SUCCESS_EVENT =147464  //WPS success detected
WPS_FAIL_EVENT=147465  //WPS failure detected
WPS_OVERLAP_EVENT=147466  //WPS overlap detected
WPS_TIMEOUT_EVENT=147467  //WPS timeout detected
 DRIVER_HUNG_EVENT=147468  //Driver was hung
// Broadcom, WAPI
    /* WAPI events leaving some gap*/
 WAPI_AUTHENTICATION_FAILURE_EVENT=147469 
 WAPI_CERTIFICATION_FAILURE_EVENT=147470
WAPI_CERTIFICATION_LOST_EVENT=147471

/* P2P events */
P2P_DEVICE_FOUND_EVENT=147477
P2P_DEVICE_LOST_EVENT=147478
P2P_GO_NEGOTIATION_REQUEST_EVENT=147479
P2P_GO_NEGOTIATION_SUCCESS_EVENT=147481
P2P_GO_NEGOTIATION_FAILURE_EVENT=147482
P2P_GROUP_FORMATION_SUCCESS_EVENT=147483
P2P_GROUP_FORMATION_FAILURE_EVENT=147484
P2P_GROUP_STARTED_EVENT=147485
P2P_GROUP_REMOVED_EVENT=147486
P2P_INVITATION_RECEIVED_EVENT=147487
P2P_INVITATION_RESULT_EVENT=147488
P2P_PROV_DISC_PBC_REQ_EVENT=147489
P2P_PROV_DISC_PBC_RSP_EVENT=147490
P2P_PROV_DISC_ENTER_PIN_EVENT=147491
P2P_PROV_DISC_SHOW_PIN_EVENT=147492
 P2P_FIND_STOPPED_EVENT =147493
P2P_SERV_DISC_RESP_EVENT=147494
P2P_PROV_DISC_FAILURE_EVENT=147495
/* hostap events */
AP_STA_DISCONNECTED_EVENT=147497
 AP_STA_CONNECTED_EVENT =147498
/* Indicates assoc reject event */
ASSOCIATION_REJECTION_EVENT=147499
/* For softap advance feature */
HOSTAPD_CONNECTION_EVENT=147500
HOSTAPD_DISCONNECTION_EVENT=147501
/* SPRD: Indicates bss removed event */
BSS_REMOVED_EVENT=147502
Released eight original articles · won praise 1 · views 125

Guess you like

Origin blog.csdn.net/qq_33707295/article/details/104055161