Lines Matching refs:hs_cfg
406 int cmd_type, struct mwifiex_ds_hs_cfg *hs_cfg) in mwifiex_set_hs_params() argument
413 if (!hs_cfg) in mwifiex_set_hs_params()
425 if (hs_cfg->is_invoke_hostcmd) { in mwifiex_set_hs_params()
426 if (hs_cfg->conditions == HS_CFG_CANCEL) { in mwifiex_set_hs_params()
431 prev_cond = le32_to_cpu(adapter->hs_cfg in mwifiex_set_hs_params()
433 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
434 cpu_to_le32(hs_cfg->conditions); in mwifiex_set_hs_params()
435 } else if (hs_cfg->conditions) { in mwifiex_set_hs_params()
436 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
437 cpu_to_le32(hs_cfg->conditions); in mwifiex_set_hs_params()
438 adapter->hs_cfg.gpio = (u8)hs_cfg->gpio; in mwifiex_set_hs_params()
439 if (hs_cfg->gap) in mwifiex_set_hs_params()
440 adapter->hs_cfg.gap = (u8)hs_cfg->gap; in mwifiex_set_hs_params()
441 } else if (adapter->hs_cfg.conditions == in mwifiex_set_hs_params()
452 &adapter->hs_cfg, in mwifiex_set_hs_params()
455 if (hs_cfg->conditions == HS_CFG_CANCEL) in mwifiex_set_hs_params()
457 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
460 adapter->hs_cfg.conditions = in mwifiex_set_hs_params()
461 cpu_to_le32(hs_cfg->conditions); in mwifiex_set_hs_params()
462 adapter->hs_cfg.gpio = (u8)hs_cfg->gpio; in mwifiex_set_hs_params()
463 adapter->hs_cfg.gap = (u8)hs_cfg->gap; in mwifiex_set_hs_params()
467 hs_cfg->conditions = le32_to_cpu(adapter->hs_cfg.conditions); in mwifiex_set_hs_params()
468 hs_cfg->gpio = adapter->hs_cfg.gpio; in mwifiex_set_hs_params()
469 hs_cfg->gap = adapter->hs_cfg.gap; in mwifiex_set_hs_params()