Lines Matching full:ifp
93 static int brcmf_pno_channel_config(struct brcmf_if *ifp, in brcmf_pno_channel_config() argument
99 return brcmf_fil_iovar_data_set(ifp, "pfn_cfg", cfg, sizeof(*cfg)); in brcmf_pno_channel_config()
102 static int brcmf_pno_config(struct brcmf_if *ifp, u32 scan_freq, in brcmf_pno_config() argument
105 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_config()
127 err = brcmf_fil_iovar_int_set(ifp, "pfnmem", pfnmem); in brcmf_pno_config()
133 err = brcmf_fil_iovar_int_get(ifp, "pfnmem", &pfnmem); in brcmf_pno_config()
146 err = brcmf_fil_iovar_data_set(ifp, "pfn_set", &pfn_param, in brcmf_pno_config()
155 static int brcmf_pno_set_random(struct brcmf_if *ifp, struct brcmf_pno_info *pi) in brcmf_pno_set_random() argument
157 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_set_random()
189 err = brcmf_fil_iovar_data_set(ifp, "pfn_macaddr", &pfn_mac, in brcmf_pno_set_random()
197 static int brcmf_pno_add_ssid(struct brcmf_if *ifp, struct cfg80211_ssid *ssid, in brcmf_pno_add_ssid() argument
200 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_add_ssid()
215 err = brcmf_fil_iovar_data_set(ifp, "pfn_add", &pfn, sizeof(pfn)); in brcmf_pno_add_ssid()
221 static int brcmf_pno_add_bssid(struct brcmf_if *ifp, const u8 *bssid) in brcmf_pno_add_bssid() argument
223 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_add_bssid()
231 err = brcmf_fil_iovar_data_set(ifp, "pfn_add_bssid", &bssid_cfg, in brcmf_pno_add_bssid()
256 static int brcmf_pno_clean(struct brcmf_if *ifp) in brcmf_pno_clean() argument
258 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_clean()
262 ret = brcmf_fil_iovar_int_set(ifp, "pfn", 0); in brcmf_pno_clean()
265 ret = brcmf_fil_iovar_data_set(ifp, "pfnclear", NULL, 0); in brcmf_pno_clean()
363 static int brcmf_pno_config_networks(struct brcmf_if *ifp, in brcmf_pno_config_networks() argument
378 err = brcmf_pno_add_ssid(ifp, &ms->ssid, in brcmf_pno_config_networks()
382 err = brcmf_pno_add_bssid(ifp, ms->bssid); in brcmf_pno_config_networks()
391 static int brcmf_pno_config_sched_scans(struct brcmf_if *ifp) in brcmf_pno_config_sched_scans() argument
393 struct brcmf_pub *drvr = ifp->drvr; in brcmf_pno_config_sched_scans()
402 pi = ifp_to_pno(ifp); in brcmf_pno_config_sched_scans()
416 err = brcmf_pno_clean(ifp); in brcmf_pno_config_sched_scans()
423 err = brcmf_pno_config(ifp, scan_freq, 0, 0); in brcmf_pno_config_sched_scans()
427 err = brcmf_pno_channel_config(ifp, &pno_cfg); in brcmf_pno_config_sched_scans()
440 err = brcmf_fil_iovar_data_set(ifp, "pfn_gscan_cfg", gscan_cfg, gsz); in brcmf_pno_config_sched_scans()
446 err = brcmf_pno_set_random(ifp, pi); in brcmf_pno_config_sched_scans()
450 err = brcmf_pno_config_networks(ifp, pi); in brcmf_pno_config_sched_scans()
455 err = brcmf_fil_iovar_int_set(ifp, "pfn", 1); in brcmf_pno_config_sched_scans()
459 brcmf_pno_clean(ifp); in brcmf_pno_config_sched_scans()
467 int brcmf_pno_start_sched_scan(struct brcmf_if *ifp, in brcmf_pno_start_sched_scan() argument
475 pi = ifp_to_pno(ifp); in brcmf_pno_start_sched_scan()
480 ret = brcmf_pno_config_sched_scans(ifp); in brcmf_pno_start_sched_scan()
484 (void)brcmf_pno_config_sched_scans(ifp); in brcmf_pno_start_sched_scan()
490 int brcmf_pno_stop_sched_scan(struct brcmf_if *ifp, u64 reqid) in brcmf_pno_stop_sched_scan() argument
497 pi = ifp_to_pno(ifp); in brcmf_pno_stop_sched_scan()
507 brcmf_pno_clean(ifp); in brcmf_pno_stop_sched_scan()
510 (void)brcmf_pno_config_sched_scans(ifp); in brcmf_pno_stop_sched_scan()