Lines Matching refs:p2p
349 cfg->p2p = MALLOCZ(cfg->osh, sizeof(struct p2p_info)); in wl_cfgp2p_init_priv()
350 if (cfg->p2p == NULL) { in wl_cfgp2p_init_priv()
374 if (cfg->p2p) { in wl_cfgp2p_deinit_priv()
375 MFREE(cfg->osh, cfg->p2p, sizeof(struct p2p_info)); in wl_cfgp2p_deinit_priv()
376 cfg->p2p = NULL; in wl_cfgp2p_deinit_priv()
432 if (!cfg->p2p) { in wl_cfg_multip2p_operational()
565 cfg->p2p->p2p_go_count++; in wl_cfgp2p_ifchange()
911 __FUNCTION__, (cfg)->p2p->bss[P2PAPI_BSSCFG_DEVICE].bssidx)); in wl_cfgp2p_disable_discovery()
1365 if (!cfg->p2p) { in wl_cfgp2p_find_type()
1390 if (!cfg || !cfg->p2p || !cfgdev)
1423 if (timer_pending(&cfg->p2p->listen_timer)) {
1424 del_timer_sync(&cfg->p2p->listen_timer);
1545 if (timer_pending(&cfg->p2p->listen_timer)) {
1546 del_timer_sync(&cfg->p2p->listen_timer);
1589 if (timer_pending(&cfg->p2p->listen_timer)) {
1604 _timer = &cfg->p2p->listen_timer;
1913 if (cfg->p2p && ((wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_CONNECTION1) != -1) ||
1934 cfg->p2p->noa.desc[0].start = 0;
1940 cfg->p2p->noa.desc[0].count = count;
1944 cfg->p2p->noa.desc[0].interval = start;
1947 cfg->p2p->noa.desc[0].duration = duration;
1949 if (cfg->p2p->noa.desc[0].count != 255 && cfg->p2p->noa.desc[0].count != 0) {
1950 cfg->p2p->noa.desc[0].start = 200;
1955 else if (cfg->p2p->noa.desc[0].count == 0) {
1956 cfg->p2p->noa.desc[0].start = 0;
1965 if ((cfg->p2p->noa.desc[0].interval == 102) ||
1966 (cfg->p2p->noa.desc[0].interval == 100)) {
1967 cfg->p2p->noa.desc[0].start = 100 -
1968 cfg->p2p->noa.desc[0].duration;
1976 dongle_noa.desc[0].count = htod32(cfg->p2p->noa.desc[0].count);
1978 dongle_noa.desc[0].start = htod32(cfg->p2p->noa.desc[0].start);
1979 dongle_noa.desc[0].duration = htod32(cfg->p2p->noa.desc[0].duration);
1982 dongle_noa.desc[0].start = htod32(cfg->p2p->noa.desc[0].start*1000);
1983 dongle_noa.desc[0].duration = htod32(cfg->p2p->noa.desc[0].duration*1000);
1985 dongle_noa.desc[0].interval = htod32(cfg->p2p->noa.desc[0].interval*1000);
2018 if (cfg->p2p->noa.desc[0].count || cfg->p2p->ops.ops) {
2020 _buf[1] = (cfg->p2p->ops.ops ? 0x80: 0) |
2021 (cfg->p2p->ops.ctw & 0x7f); /* ops + ctw */
2023 if (cfg->p2p->noa.desc[0].count) {
2025 noa_desc->cnt_type = cfg->p2p->noa.desc[0].count;
2026 noa_desc->duration = cfg->p2p->noa.desc[0].duration;
2027 noa_desc->interval = cfg->p2p->noa.desc[0].interval;
2028 noa_desc->start = cfg->p2p->noa.desc[0].start;
2070 cfg->p2p->ops.ctw = ctw;
2074 cfg->p2p->ops.ops = ps;
2076 "p2p_ops", &cfg->p2p->ops, sizeof(cfg->p2p->ops),