This patch returns WIFI_MESH_ERROR_INVALID_OPERATION when trying to get
stations informations specific to mesh for softAP station
Change-Id: Ib8d74ecc38c8bd1ca6be455f3ca2b079255c515e
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
+ if (psta->sta_type == MESH_STATION_TYPE_SOFTAP) {
+ /* LCOV_EXCL_START */
+ LOGE("Invalid Station Type");
+ return WIFI_MESH_ERROR_INVALID_OPERATION;
+ /* LCOV_EXCL_STOP */
+ }
+
*mesh_llid = psta->mesh_llid;
return rv;
}
*mesh_llid = psta->mesh_llid;
return rv;
}
+ if (psta->sta_type == MESH_STATION_TYPE_SOFTAP) {
+ /* LCOV_EXCL_START */
+ LOGE("Invalid Station Type");
+ return WIFI_MESH_ERROR_INVALID_OPERATION;
+ /* LCOV_EXCL_STOP */
+ }
+
*mesh_plid = psta->mesh_plid;
return rv;
}
*mesh_plid = psta->mesh_plid;
return rv;
}
+ if (psta->sta_type == MESH_STATION_TYPE_SOFTAP) {
+ /* LCOV_EXCL_START */
+ LOGE("Invalid Station Type");
+ return WIFI_MESH_ERROR_INVALID_OPERATION;
+ /* LCOV_EXCL_STOP */
+ }
+
*mesh_plink = psta->mesh_plink;
return rv;
}
*mesh_plink = psta->mesh_plink;
return rv;
}
+ if (psta->sta_type == MESH_STATION_TYPE_SOFTAP) {
+ /* LCOV_EXCL_START */
+ LOGE("Invalid Station Type");
+ return WIFI_MESH_ERROR_INVALID_OPERATION;
+ /* LCOV_EXCL_STOP */
+ }
+
*local_ps_mode = psta->local_ps_mode;
return rv;
}
*local_ps_mode = psta->local_ps_mode;
return rv;
}
+ if (psta->sta_type == MESH_STATION_TYPE_SOFTAP) {
+ /* LCOV_EXCL_START */
+ LOGE("Invalid Station Type");
+ return WIFI_MESH_ERROR_INVALID_OPERATION;
+ /* LCOV_EXCL_STOP */
+ }
+
*peer_ps_mode = psta->peer_ps_mode;
return rv;
}
*peer_ps_mode = psta->peer_ps_mode;
return rv;
}
+ if (psta->sta_type == MESH_STATION_TYPE_SOFTAP) {
+ /* LCOV_EXCL_START */
+ LOGE("Invalid Station Type");
+ return WIFI_MESH_ERROR_INVALID_OPERATION;
+ /* LCOV_EXCL_STOP */
+ }
+
*non_peer_ps_mode = psta->non_peer_ps_mode;
return rv;
}
*non_peer_ps_mode = psta->non_peer_ps_mode;
return rv;
}