Lines Matching refs:mode
380 static int wpa_driver_tista_config_power_management(void *priv, TPowerMgr_PowerMode *mode, u8 is_set)
384 if(is_set) /* set power mode */
386 if((mode->PowerMode) < POWER_MODE_MAX)
389 mode, sizeof(TPowerMgr_PowerMode), NULL, 0))
391 wpa_printf(MSG_ERROR, "ERROR - Failed to set power mode");
401 else /* get power mode */
404 mode, sizeof(TPowerMgr_PowerMode)))
406 wpa_printf(MSG_ERROR, "ERROR - Failed to get power mode");
415 static int wpa_driver_tista_enable_bt_coe(void *priv, u32 mode)
418 u32 mode_set = mode;
420 /* Mapping the mode between UI enum and driver enum */
449 static int wpa_driver_tista_get_bt_coe_status(void *priv, u32 *mode)
460 *mode = mode_get;
461 wpa_printf(MSG_DEBUG, "wpa_driver_tista_get_bt_coe_status mode %d success", *mode);
660 else if( os_strcasecmp(cmd, "scan-mode") == 0 ) {
744 u32 mode;
747 mode = (u32)atoi(cmd + 9);
748 wpa_printf(MSG_DEBUG,"Power Mode command = %u", mode);
749 if( mode < POWER_MODE_MAX )
751 tMode.PowerMode = (PowerMgr_PowerMode_e)mode;
757 u32 mode;
768 u32 mode;
770 mode = (u32)atoi(cmd + 10);
771 wpa_printf(MSG_DEBUG,"BtCoex Mode command = %u", mode);
772 ret = wpa_driver_tista_enable_bt_coe( priv, mode );
774 drv->btcoex_mode = mode;
856 Routine Description: set probe request ie for WSC mode change
893 pos = (u8*)ies + head_len; /* Find the WSC mode in probe_req_ie by password_id */
925 wpa_printf(MSG_ERROR, "ERROR - Failed to set wsc mode!");
977 /* BtCoex mode is read from tiwlan.ini file */
1267 int wpa_driver_tista_set_mode(void *priv, int mode)
1274 ret = wpa_driver_wext_set_mode(drv->wext, mode);
1340 /* Set driver network mode (Adhoc/Infrastructure) according to supplied parameters */
1341 wpa_driver_wext_set_mode(drv->wext, params->mode);