summaryrefslogtreecommitdiff
path: root/cesar/bsu/beacon/beacon.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/bsu/beacon/beacon.h')
-rw-r--r--cesar/bsu/beacon/beacon.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/cesar/bsu/beacon/beacon.h b/cesar/bsu/beacon/beacon.h
index dedafb3711..df0d038adf 100644
--- a/cesar/bsu/beacon/beacon.h
+++ b/cesar/bsu/beacon/beacon.h
@@ -136,12 +136,6 @@ typedef struct bsu_beacon_t bsu_beacon_t;
/** Schedule description for the AVLN. */
struct bsu_beacon_schedules_t
{
- /** Hybrid mode. */
- mac_coexistence_mode_t hm[BSU_BEACON_SCHEDULES_MAX];
- /** SNID. */
- u8 snid[BSU_BEACON_SCHEDULES_MAX];
- /** NEK switch. */
- uint nek_switch[BSU_BEACON_SCHEDULES_MAX];
/** Network mode. */
bsu_beacon_nm_t nm;
/** Persistent schedule. */
@@ -150,6 +144,12 @@ struct bsu_beacon_schedules_t
bsu_beacon_bmi_non_persistent_schedule_t nps;
/** Beacon period start time offset. */
bsu_beacon_bmi_bpsto_t bpsto;
+ /** SNID change beacon entry. */
+ bsu_beacon_bmi_change_snid_t snid;
+ /** EKS change beacon entry. */
+ bsu_beacon_bmi_eks_t eks;
+ /** Change hybrid mode. */
+ bsu_beacon_bmi_change_hybrid_mode_t hm;
};
typedef struct bsu_beacon_schedules_t bsu_beacon_schedules_t;
@@ -162,6 +162,10 @@ struct bsu_beacon_avln_t
u8 snid;
/** CCo's TEI. */
u8 tei;
+ /** Hybrid mode. */
+ mac_coexistence_mode_t hm;
+ /** NEK switch. */
+ uint nek_switch;
/** Schedule description. */
bsu_beacon_schedules_t schedules;
};
@@ -200,11 +204,13 @@ bsu_beacon_write (bsu_beacon_t *beacon, bsu_beacon_type_t type,
* \param beacon the beacon received from the medium.
* \param schedules schedules structure to store the data.
* \param discover the discover structure to store discover data.
+ * \param hm the coexistence mode the AVLN is currently using.
*/
void
bsu_beacon_read_schedules (pb_beacon_t *beacon,
bsu_beacon_schedules_t *schedules,
- bsu_beacon_bmi_discover_t *discover);
+ bsu_beacon_bmi_discover_t *discover,
+ mac_coexistence_mode_t *hm);
/**
* Read the whole beacon and store the data into the beacon structure.