|
@@ -744,6 +744,11 @@ static int hdd_get_station_info(struct hdd_context *hdd_ctx,
|
|
|
|
|
|
hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
|
|
|
|
|
|
+ if (hdd_cm_is_vdev_connected(adapter)) {
|
|
|
|
+ hdd_err("Station is connected, command is not supported");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
nl_buf_len = NLMSG_HDRLEN;
|
|
nl_buf_len = NLMSG_HDRLEN;
|
|
nl_buf_len += sizeof(hdd_sta_ctx->
|
|
nl_buf_len += sizeof(hdd_sta_ctx->
|
|
cache_conn_info.last_ssid.SSID.length) +
|
|
cache_conn_info.last_ssid.SSID.length) +
|