Lines Matching refs:bssidx
509 s32 bssidx = 0; in wl_cfgp2p_ifdel() local
521 if ((bssidx = wl_get_bssidx_by_wdev(cfg, netdev->ieee80211_ptr)) < 0) { in wl_cfgp2p_ifdel()
527 wl_cfg80211_set_he_mode(netdev, cfg, bssidx, WL_IF_TYPE_P2P_DISC, TRUE); in wl_cfgp2p_ifdel()
622 wl_cfgp2p_set_p2p_mode(struct bcm_cfg80211 *cfg, u8 mode, u32 channel, u16 listen_ms, int bssidx) in wl_cfgp2p_set_p2p_mode() argument
629 if (unlikely(bssidx == WL_INVALID)) { in wl_cfgp2p_set_p2p_mode()
630 CFGP2P_ERR((" %d index out of range\n", bssidx)); in wl_cfgp2p_set_p2p_mode()
634 dev = wl_cfgp2p_find_ndev(cfg, bssidx); in wl_cfgp2p_set_p2p_mode()
636 CFGP2P_ERR(("bssidx %d is not assigned\n", bssidx)); in wl_cfgp2p_set_p2p_mode()
666 bssidx, &cfg->ioctl_buf_sync); in wl_cfgp2p_set_p2p_mode()
718 s32 bssidx = 0; in wl_cfgp2p_init_discovery() local
736 ret = wl_cfgp2p_get_disc_idx(cfg, &bssidx); in wl_cfgp2p_init_discovery()
752 ret = wl_alloc_netinfo(cfg, NULL, cfg->p2p_wdev, WL_IF_TYPE_STA, 0, bssidx, 0); in wl_cfgp2p_init_discovery()
758 wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_DEVICE) = bssidx; in wl_cfgp2p_init_discovery()
791 s32 bssidx; in wl_cfgp2p_deinit_discovery() local
794 bssidx = wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_DEVICE); in wl_cfgp2p_deinit_discovery()
795 if (bssidx <= 0) { in wl_cfgp2p_deinit_discovery()
805 bssidx); in wl_cfgp2p_deinit_discovery()
830 s32 bssidx; in wl_cfgp2p_enable_discovery() local
867 bssidx = wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_DEVICE); in wl_cfgp2p_enable_discovery()
868 } else if ((bssidx = wl_get_bssidx_by_wdev(cfg, cfg->p2p_wdev)) < 0) { in wl_cfgp2p_enable_discovery()
882 bssidx, VNDR_IE_PRBREQ_FLAG, ie, ie_len); in wl_cfgp2p_enable_discovery()
905 s32 bssidx; in wl_cfgp2p_disable_discovery() local
911 __FUNCTION__, (cfg)->p2p->bss[P2PAPI_BSSCFG_DEVICE].bssidx)); in wl_cfgp2p_disable_discovery()
913 bssidx = wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_DEVICE); in wl_cfgp2p_disable_discovery()
914 if (bssidx <= 0) { in wl_cfgp2p_disable_discovery()
919 ret = wl_cfgp2p_set_p2p_mode(cfg, WL_P2P_DISC_ST_SCAN, 0, 0, bssidx); in wl_cfgp2p_disable_discovery()
941 s32 search_state, u16 action, u32 bssidx, struct ether_addr *tx_dst_addr, in wl_cfgp2p_escan() argument
986 wl_cfgp2p_set_p2p_mode(cfg, WL_P2P_DISC_ST_SEARCH, 0, 0, bssidx); in wl_cfgp2p_escan()
997 wl_cfgp2p_set_p2p_mode(cfg, WL_P2P_DISC_ST_SCAN, 0, 0, bssidx); in wl_cfgp2p_escan()
1111 memblk, memsize, cfg->ioctl_buf, WLC_IOCTL_MAXLEN, bssidx, &cfg->ioctl_buf_sync); in wl_cfgp2p_escan()
1112 WL_INFORM(("P2P_SEARCH sync ID: %d, bssidx: %d\n", sync_id, bssidx)); in wl_cfgp2p_escan()
1128 s32 bssidx, s32 channel, struct ether_addr *tx_dst_addr) in wl_cfgp2p_act_frm_search() argument
1134 if (!p2p_is_on(cfg) || ndev == NULL || bssidx == WL_INVALID) in wl_cfgp2p_act_frm_search()
1137 if (bssidx == wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_PRIMARY)) in wl_cfgp2p_act_frm_search()
1138 bssidx = wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_DEVICE); in wl_cfgp2p_act_frm_search()
1172 WL_SCAN_ACTION_START, bssidx, NULL, p2p_scan_purpose); in wl_cfgp2p_act_frm_search()
1327 wl_cfgp2p_find_ndev(struct bcm_cfg80211 *cfg, s32 bssidx) in wl_cfgp2p_find_ndev() argument
1331 if (bssidx < 0) { in wl_cfgp2p_find_ndev()
1337 if (bssidx == wl_to_p2p_bss_bssidx(cfg, i)) { in wl_cfgp2p_find_ndev()
1358 wl_cfgp2p_find_type(struct bcm_cfg80211 *cfg, s32 bssidx, s32 *type) in wl_cfgp2p_find_type() argument
1361 if (bssidx < 0 || type == NULL) { in wl_cfgp2p_find_type()
1370 if (bssidx == wl_to_p2p_bss_bssidx(cfg, i)) { in wl_cfgp2p_find_type()
1713 wl_af_params_t *af_params, s32 bssidx) argument
1739 cfg->ioctl_buf, WLC_IOCTL_MAXLEN, bssidx, &cfg->ioctl_buf_sync);
1927 s32 bssidx, type; local
1986 bssidx = wl_get_bssidx_by_wdev(cfg, ndev->ieee80211_ptr);
1987 if (wl_cfgp2p_find_type(cfg, bssidx, &type) != BCME_OK)
2057 s32 bssidx; local
2065 bssidx = wl_get_bssidx_by_wdev(cfg, ndev->ieee80211_ptr);
2066 if (wl_cfgp2p_find_type(cfg, bssidx, &conn_idx) != BCME_OK)
2105 s32 bssidx; local
2117 bssidx = wl_get_bssidx_by_wdev(cfg, ndev->ieee80211_ptr);
2118 if (wl_cfgp2p_find_type(cfg, bssidx, &conn_idx) != BCME_OK) {