summaryrefslogtreecommitdiff
path: root/cp/station
diff options
context:
space:
mode:
authorburet2008-02-19 16:32:30 +0000
committerburet2008-02-19 16:32:30 +0000
commit6f83b6678a20fe238202a59aae54f76be9716c07 (patch)
treed5cce54aab40fe20fbffb34854e1a2e1f788657f /cp/station
parentb183af124bda0f552caffe85b88f5a3ad27ecdaf (diff)
Maximus: update code with the new defines of common/defs/ethernet.h
Modifications in Maximus HAL HLE and in Maximus CP station modules. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1436 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cp/station')
-rw-r--r--cp/station/maximus/src/maximus_cp_station.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/cp/station/maximus/src/maximus_cp_station.c b/cp/station/maximus/src/maximus_cp_station.c
index 4e4c487444..c32c21fc83 100644
--- a/cp/station/maximus/src/maximus_cp_station.c
+++ b/cp/station/maximus/src/maximus_cp_station.c
@@ -16,11 +16,11 @@
#include "cp/station/inc/station_data.h" // for cp station functions
#include "cp/station/inc/station_actions.h" // for process drv functions
#include "cp/station/station.h" // for 'cp_station_mac_start()'
-#include "mac/sar/inc/sar_mf.h" // for 'SAR_MSDU_PAYLOAD_MAX_SIZE'
+#include "common/defs/ethernet.h" // for 'ETH_PACKET_MAX_SIZE'
#include <stdio.h> // for 'sprintf()'
#include <errno.h>
-char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+char mme[ETH_PACKET_MAX_SIZE];
void maximus_cp_station_init (station_ctx_t *station)
{
@@ -56,7 +56,7 @@ int maximus_set_mac_address (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_
mac_address_t mac_address;
const unsigned short int mac_address_length = 6;
memset(mac_address, '\0', mac_address_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_mac_address");
@@ -94,7 +94,7 @@ int maximus_set_mac_address (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_
cp_station_set_mac_address(NULL, mac_address);
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -122,7 +122,7 @@ int maximus_set_mac_address (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_
int maximus_set_cco_preference (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data)
{
cco_preference_t cco_preference = false;
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_cco_preference");
@@ -150,7 +150,7 @@ int maximus_set_cco_preference (fcall_ctx_t *fcall, fcall_param_t **param, sci_m
//cp_station_set_cco_preference(cco_preference); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -178,7 +178,7 @@ int maximus_set_cco_preference (fcall_ctx_t *fcall, fcall_param_t **param, sci_m
int maximus_set_was_cco (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data)
{
was_cco_t was_cco = false;
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_was_cco");
@@ -206,7 +206,7 @@ int maximus_set_was_cco (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **
//cp_station_set_was_cco(was_cco); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -236,7 +236,7 @@ int maximus_set_npw (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg,
npw_t npw;
const unsigned short int npw_length = 65;
memset(npw, '\0', npw_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_npw");
@@ -264,7 +264,7 @@ int maximus_set_npw (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg,
//cp_station_set_npw(npw); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -294,7 +294,7 @@ int maximus_set_dpw (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg,
dpw_t dpw;
const unsigned short int dpw_length = 65;
memset(dpw, '\0', dpw_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_dpw");
@@ -322,7 +322,7 @@ int maximus_set_dpw (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg,
//cp_station_set_dpw(dpw); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -352,7 +352,7 @@ int maximus_set_m_sta_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
m_sta_hfid_t m_sta_hfid;
const unsigned short int m_sta_hfid_length = 65;
memset(m_sta_hfid, '\0', m_sta_hfid_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_m_sta_hfid");
@@ -380,7 +380,7 @@ int maximus_set_m_sta_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
//cp_station_set_m_sta_hfid(m_sta_hfid); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -410,7 +410,7 @@ int maximus_set_u_sta_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
u_sta_hfid_t u_sta_hfid;
const unsigned short int u_sta_hfid_length = 65;
memset(u_sta_hfid, '\0', u_sta_hfid_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_u_sta_hfid");
@@ -438,7 +438,7 @@ int maximus_set_u_sta_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
//cp_station_set_u_sta_hfid(u_sta_hfid); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -468,7 +468,7 @@ int maximus_set_avln_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
avln_hfid_t avln_hfid;
const unsigned short int avln_hfid_length = 65;
memset(avln_hfid, '\0', avln_hfid_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_avln_hfid");
@@ -496,7 +496,7 @@ int maximus_set_avln_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
//cp_station_set_avln_hfid(avln_hfid); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -524,7 +524,7 @@ int maximus_set_avln_hfid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t
int maximus_set_sl (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data)
{
sl_t sl = '\0';
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_sl");
@@ -552,7 +552,7 @@ int maximus_set_sl (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg,
//cp_station_set_sl(sl); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -582,7 +582,7 @@ int maximus_set_tonemask (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t *
tonemask_t tonemask;
const unsigned short int tonemask_length = (PHY_CARRIER_NB + 7) / 8;
memset(tonemask, '\0', tonemask_length);
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_tonemask");
@@ -610,7 +610,7 @@ int maximus_set_tonemask (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t *
//cp_station_set_tonemask(tonemask); // TBD
}
- if (-1 == fcall_param_bind(*param, *msg, "mme", SAR_MSDU_PAYLOAD_MAX_SIZE, &mme))
+ if (-1 == fcall_param_bind(*param, *msg, "mme", ETH_PACKET_MAX_SIZE, &mme))
{
if (ENOENT != errno)
{
@@ -638,7 +638,7 @@ int maximus_set_tonemask (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t *
int maximus_set_snid (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data)
{
snid_t snid = '\0';
- //static char mme[SAR_MSDU_PAYLOAD_MAX_SIZE];
+ //static char mme[ETH_PACKET_MAX_SIZE];
station_log(&my_station, STATION_LOG_DEBUG, STATION_LOGTYPE_FCALL,
"=> maximus_set_snid");