wvtest_PROGRAMS += fwp_adm_test
fwp_adm_test_SOURCES = fwp_adm_test.c
-fwp_adm_test_LIBS += frm forb frsh contract pthread fosa rt ulut fwp_admctrl wvtest
+fwp_adm_test_LIBS += frm frsh fwp_admctrl wvtest
wvtest_SCRIPTS += list_of_stations_test.sh
test_PROGRAMS += list_of_stations_test
list_of_stations_test_SOURCES = list_of_stations_test.c
-list_of_stations_test_LIBS += wvtest forb ulut wifi_agent_client_functions
+list_of_stations_test_LIBS += wifi_agent_client_functions
+/*
+ * @brief client for testing purposes - sends information about stations to
+ * list in frm_fwp manager and print it
+ *
+ */
+
#include <forb.h>
-#include <error.h>
-#include <errno.h>
-#include <getopt.h>
-#include <fres_sa_scenario.h>
-#include <stdbool.h>
-#include <ul_list.h>
-#include <ul_log.h>
-#include <ul_logreg.h>
-#include <fwp_res.h>
#include <stdio.h>
-#include <string.h>
#include "wifi_agent_idl.h"
#include "wifi_agent.h"
-#include "wvtest.h"
-//WVTEST_MAIN("list-of-stations-test")
int main(void)
{
forb_orb fwp_orb;
+/*
+ * @brief server side (frm_fwp) functions for communication
+ * resource manager - station
+ */
+
#include <frm_generic.h>
#include <forb.h>
#include <error.h>
new_to_add = (fwp_sta_t*)malloc(sizeof(fwp_sta_t));
- //client transmission bitrate (wifi_agent -> fwp_manager)
+ /*client transmission bitrate (wifi_agent -> fwp_manager)*/
ed->rate = rate;
ed->client_mac_addr = client_mac_addr;
- //fill the linked list here
- //for each list
+ /*fill the linked list here*/
ul_list_for_each(sta_list, &priv.sta_list, sta){
- //client was sending info before
+ /*client was sending info before*/
if(sta->client_mac_addr == ed->client_mac_addr) {
- //mac address is the same change only rate
+ /*mac address is the same change only rate*/
sta->rate = ed->rate;
return 0;
}
}
- //client was not sending info yet
+ /*client was not sending info yet*/
new_to_add->rate = ed->rate;
new_to_add->client_mac_addr = ed->client_mac_addr;
/*
- *
+ * @brief: Program finds out mac address and tx bitrate of station
+ * and sends it to frm_fwp manager
*
*/
forb_orb fwp_orb;
wifi_agent_idl wai;
CORBA_Environment env;
- /*CORBA_long*/ //int rate;
- /*COBRA_string*/ //char client_mac_addr[20];
// if some arguments whitch are not needed
// if (argc > 1) {