Lines Matching refs:wdev
292 simnet_wifidev_t *wdev = sdev->sd_wifidev; in simnet_wifidev_free() local
295 for (i = 0; i < wdev->swd_esslist_num; i++) { in simnet_wifidev_free()
296 kmem_free(wdev->swd_esslist[i], in simnet_wifidev_free()
299 kmem_free(wdev, sizeof (simnet_wifidev_t)); in simnet_wifidev_free()
878 simnet_wifidev_t *wdev = sdev->sd_wifidev; in simnet_wifi_ioctl() local
883 wdev->swd_linkstatus = WL_NOTCONNECTED; in simnet_wifi_ioctl()
1189 set_wl_esslist_priv_prop(simnet_wifidev_t *wdev, uint_t pr_valsize, in set_wl_esslist_priv_prop() argument
1199 for (i = 0; i < wdev->swd_esslist_num; i++) { in set_wl_esslist_priv_prop()
1200 kmem_free(wdev->swd_esslist[i], sizeof (wl_ess_conf_t)); in set_wl_esslist_priv_prop()
1201 wdev->swd_esslist[i] = NULL; in set_wl_esslist_priv_prop()
1203 wdev->swd_esslist_num = 0; in set_wl_esslist_priv_prop()
1207 for (i = 0; i < wdev->swd_esslist_num; i++) { in set_wl_esslist_priv_prop()
1208 wls = wdev->swd_esslist[i]; in set_wl_esslist_priv_prop()
1214 if (wdev->swd_esslist_num >= MAX_SIMNET_ESSCONF) in set_wl_esslist_priv_prop()
1227 wdev->swd_esslist[wdev->swd_esslist_num] = wls; in set_wl_esslist_priv_prop()
1228 wdev->swd_esslist_num++; in set_wl_esslist_priv_prop()
1237 simnet_wifidev_t *wdev = sdev->sd_wifidev; in simnet_set_priv_prop_wifi() local
1243 return (set_wl_esslist_priv_prop(wdev, len, val)); in simnet_set_priv_prop_wifi()
1248 wdev->swd_linkstatus = ((result == 1) ? in simnet_set_priv_prop_wifi()
1347 simnet_wifidev_t *wdev = sdev->sd_wifidev; in simnet_setprop_wifi() local
1354 (void) memcpy(&wdev->swd_essid, val, sizeof (wl_essid_t)); in simnet_setprop_wifi()
1355 wdev->swd_linkstatus = WL_CONNECTED; in simnet_setprop_wifi()
1358 for (i = 0; i < wdev->swd_esslist_num; i++) { in simnet_setprop_wifi()
1359 wls = wdev->swd_esslist[i]; in simnet_setprop_wifi()
1361 wdev->swd_essid.wl_essid_essid) == 0) { in simnet_setprop_wifi()
1362 wdev->swd_rssi = wls->wl_ess_conf_sl; in simnet_setprop_wifi()
1369 (void) memcpy(&wdev->swd_bssid, val, sizeof (wl_bssid_t)); in simnet_setprop_wifi()
1452 simnet_wifidev_t *wdev = sdev->sd_wifidev; in simnet_get_priv_prop_wifi() local
1457 value = wdev->swd_esslist_num; in simnet_get_priv_prop_wifi()
1459 value = ((wdev->swd_linkstatus == WL_CONNECTED) ? 1:0); in simnet_get_priv_prop_wifi()
1526 const simnet_wifidev_t *wdev = sdev->sd_wifidev; in simnet_getprop_wifi() local
1531 (void) memcpy(val, &wdev->swd_essid, sizeof (wl_essid_t)); in simnet_getprop_wifi()
1534 (void) memcpy(val, &wdev->swd_bssid, sizeof (wl_bssid_t)); in simnet_getprop_wifi()
1541 (void) memcpy(val, &wdev->swd_linkstatus, in simnet_getprop_wifi()
1542 sizeof (wdev->swd_linkstatus)); in simnet_getprop_wifi()
1547 ((wl_ess_list_t *)val)->wl_ess_list_num = wdev->swd_esslist_num; in simnet_getprop_wifi()
1551 for (uint_t i = 0; i < wdev->swd_esslist_num; i++) { in simnet_getprop_wifi()
1552 (void) memcpy(w_ess_conf, wdev->swd_esslist[i], in simnet_getprop_wifi()
1559 *(wl_rssi_t *)val = wdev->swd_rssi; in simnet_getprop_wifi()