Lines Matching refs:mesh_if

1218 wl_mesh_clear_mesh_info(struct wl_if_info *mesh_if, bool scan)  in wl_mesh_clear_mesh_info()  argument
1220 struct dhd_pub *dhd = dhd_get_pub(mesh_if->dev); in wl_mesh_clear_mesh_info()
1226 IAPSTA_TRACE(mesh_if->dev->name, "Enter\n"); in wl_mesh_clear_mesh_info()
1228 ret = wl_mesh_clear_vndr_ie(mesh_if->dev, mesh_oui); in wl_mesh_clear_mesh_info()
1231 mesh_info->scan_channel = wl_ext_get_chan(mesh_if->dev, in wl_mesh_clear_mesh_info()
1232 &mesh_if->chan_info); in wl_mesh_clear_mesh_info()
1233 wl_timer_mod(dhd, &mesh_if->delay_scan, 100); in wl_mesh_clear_mesh_info()
1241 struct wl_if_info *mesh_if) in wl_mesh_update_vndr_ie() argument
1250 wl_mesh_clear_vndr_ie(mesh_if->dev, mesh_oui); in wl_mesh_update_vndr_ie()
1255 IAPSTA_ERROR(mesh_if->dev->name, "Failed to allocate buffer of %d bytes\n", in wl_mesh_update_vndr_ie()
1286 ret = wl_ext_add_del_ie(mesh_if->dev, VNDR_IE_BEACON_FLAG|VNDR_IE_PRBRSP_FLAG, in wl_mesh_update_vndr_ie()
1289 IAPSTA_INFO(mesh_if->dev->name, "mbssid=%pM, mchannel=%d, hop=%d, pbssid=%pM\n", in wl_mesh_update_vndr_ie()
1302 struct wl_if_info *mesh_if) in wl_mesh_update_master_info() argument
1310 wldev_ioctl(mesh_if->dev, WLC_GET_BSSID, &mesh_info->master_bssid, in wl_mesh_update_master_info()
1312 mesh_info->master_channel = wl_ext_get_chan(mesh_if->dev, &mesh_if->chan_info); in wl_mesh_update_master_info()
1315 if (!wl_mesh_update_vndr_ie(apsta_params, mesh_if)) in wl_mesh_update_master_info()
1324 struct wl_if_info *mesh_if) in wl_mesh_update_mesh_info() argument
1337 IAPSTA_ERROR(mesh_if->dev->name, "Failed to allocate buffer of %d bytes\n", in wl_mesh_update_mesh_info()
1341 count = wl_mesh_get_peer_results(mesh_if->dev, dump_buf, WLC_IOCTL_MAXLEN); in wl_mesh_update_mesh_info()
1344 wldev_ioctl(mesh_if->dev, WLC_GET_BSSID, &bssid, ETHER_ADDR_LEN, 0); in wl_mesh_update_mesh_info()
1351 bss_found = wl_escan_mesh_info(mesh_if->dev, mesh_if->escan, in wl_mesh_update_mesh_info()
1370 if (wl_mesh_update_vndr_ie(apsta_params, mesh_if)) { in wl_mesh_update_mesh_info()
1371 IAPSTA_ERROR(mesh_if->dev->name, "update failed\n"); in wl_mesh_update_mesh_info()
1384 wl_ext_ioctl(mesh_if->dev, WLC_GET_SSID, &cur_ssid, sizeof(cur_ssid), 0); in wl_mesh_update_mesh_info()
1385 wl_ext_get_sec(mesh_if->dev, mesh_if->ifmode, sec, sizeof(sec), FALSE); in wl_mesh_update_mesh_info()
1388 cur_chan = wl_ext_get_chan(mesh_if->dev, &mesh_if->chan_info); in wl_mesh_update_mesh_info()
1389 bss_found = wl_escan_mesh_peer(mesh_if->dev, mesh_if->escan, &cur_ssid, cur_chan, in wl_mesh_update_mesh_info()
1394 WL_MSG(mesh_if->ifname, "moving channel %d -> %d\n", in wl_mesh_update_mesh_info()
1396 wl_ext_disable_iface(mesh_if->dev, mesh_if->ifname); in wl_mesh_update_mesh_info()
1397 mesh_if->channel = peer_mesh_info.master_channel; in wl_mesh_update_mesh_info()
1398 wl_ext_enable_iface(mesh_if->dev, mesh_if->ifname, 500, TRUE); in wl_mesh_update_mesh_info()
1419 struct wl_if_info *mesh_if = NULL, *tmp_if = NULL; in wl_mesh_event_handler() local
1423 mesh_if = cur_if; in wl_mesh_event_handler()
1428 mesh_if = tmp_if; in wl_mesh_event_handler()
1437 if (mesh_if && apsta_params->macs) in wl_mesh_event_handler()
1438 wl_mesh_clear_mesh_info(mesh_if, TRUE); in wl_mesh_event_handler()
1440 if (mesh_if && apsta_params->macs) in wl_mesh_event_handler()
1441 wl_mesh_update_master_info(apsta_params, mesh_if); in wl_mesh_event_handler()
1445 if (mesh_if && apsta_params->macs) in wl_mesh_event_handler()
1446 wl_mesh_clear_mesh_info(mesh_if, TRUE); in wl_mesh_event_handler()
1450 if (mesh_if && apsta_params->macs) in wl_mesh_event_handler()
1451 wl_mesh_clear_mesh_info(mesh_if, TRUE); in wl_mesh_event_handler()
1455 if (wl_get_isam_status(mesh_if, AP_CREATED) && in wl_mesh_event_handler()
1459 if (!wl_mesh_update_master_info(apsta_params, mesh_if)) { in wl_mesh_event_handler()
1460 mesh_info->scan_channel = wl_ext_get_chan(&mesh_if->dev, in wl_mesh_event_handler()
1461 mesh_if->chan_info); in wl_mesh_event_handler()
1462 wl_timer_mod(dhd, &mesh_if->delay_scan, WL_MESH_DELAY_SCAN_TMO); in wl_mesh_event_handler()
1468 wl_mesh_clear_mesh_info(mesh_if, FALSE); in wl_mesh_event_handler()
1470 else if (wl_get_isam_status(mesh_if, AP_CREATED) && in wl_mesh_event_handler()
1473 mesh_info->scan_channel = wl_ext_get_chan(mesh_if->dev, in wl_mesh_event_handler()
1474 &mesh_if->chan_info); in wl_mesh_event_handler()
1475 wl_timer_mod(dhd, &mesh_if->delay_scan, 100); in wl_mesh_event_handler()
1480 wl_mesh_clear_mesh_info(mesh_if, TRUE); in wl_mesh_event_handler()
1482 else if (wl_get_isam_status(mesh_if, AP_CREATED) && in wl_mesh_event_handler()
1484 if (!wl_mesh_update_master_info(apsta_params, mesh_if)) { in wl_mesh_event_handler()
1487 wl_ext_ioctl(mesh_if->dev, WLC_GET_SSID, &scan_info.ssid, sizeof(wlc_ssid_t), 0); in wl_mesh_event_handler()
1492 ret = wl_escan_set_scan(mesh_if->dev, &scan_info); in wl_mesh_event_handler()
1494 wl_timer_mod(dhd, &mesh_if->delay_scan, WL_MESH_DELAY_SCAN_TMO); in wl_mesh_event_handler()
1497 else if (wl_get_isam_status(mesh_if, AP_CREATED) && in wl_mesh_event_handler()
1503 if (!wl_mesh_update_master_info(apsta_params, mesh_if)) { in wl_mesh_event_handler()
1504 if (!wl_mesh_update_mesh_info(apsta_params, mesh_if)) { in wl_mesh_event_handler()
1506 wl_timer_mod(dhd, &mesh_if->delay_scan, WL_MESH_DELAY_SCAN_TMO); in wl_mesh_event_handler()
1514 wl_mesh_escan_detach(dhd_pub_t *dhd, struct wl_if_info *mesh_if) in wl_mesh_escan_detach() argument
1516 IAPSTA_TRACE(mesh_if->dev->name, "Enter\n"); in wl_mesh_escan_detach()
1517 wl_timer_deregister(mesh_if->dev, &mesh_if->delay_scan); in wl_mesh_escan_detach()
1518 if (mesh_if->escan) { in wl_mesh_escan_detach()
1519 mesh_if->escan = NULL; in wl_mesh_escan_detach()
1524 wl_mesh_escan_attach(dhd_pub_t *dhd, struct wl_if_info *mesh_if) in wl_mesh_escan_attach() argument
1526 IAPSTA_TRACE(mesh_if->dev->name, "Enter\n"); in wl_mesh_escan_attach()
1528 mesh_if->escan = dhd->escan; in wl_mesh_escan_attach()
1529 wl_timer_register(mesh_if->dev, &mesh_if->delay_scan, wl_mesh_timer); in wl_mesh_escan_attach()
1535 wl_mesh_update_peer_path(struct wl_if_info *mesh_if, char *command, in wl_mesh_update_peer_path() argument
1548 IAPSTA_ERROR(mesh_if->dev->name, "Failed to allocate buffer of %d bytes\n", in wl_mesh_update_peer_path()
1552 count = wl_mesh_get_peer_results(mesh_if->dev, dump_buf, WLC_IOCTL_MAXLEN); in wl_mesh_update_peer_path()
1560 bss_found = wl_escan_mesh_info(mesh_if->dev, mesh_if->escan, in wl_mesh_update_peer_path()