Skip to content

Commit dad2952

Browse files
author
Arto Kinnunen
committed
Squashed 'features/nanostack/sal-stack-nanostack/' changes from 715ae9a..35b95da
35b95da Remove unnecessary files from release 0717432 Merge remote-tracking branch 'origin/release_internal' into release_external f68126b Adaptation layer MCPS confirmation handle update e483a07 Added OFDM configurations and FEC in RF config structure (ARMmbed#2513) b88abfa BUG fix: Fixed broken Brodcast MAC overflow handling 9cad478 Random early detection congestion API update 00aed73 Modified the Wi-SUN stack Latency estimates a bit slower 6b83d82 Remove periodic PAN version increase from Wi-SUN border router ef670e2 Integrated ReD congestion packet drop to Wi-SUN bootstrap interface. b956d9e Revert "Improved transmission in high traffic (ARMmbed#2511)" (ARMmbed#2512) 01749c2 Improved transmission in high traffic (ARMmbed#2511) 3158e96 Adaption layer queue trace update 5a32f4a Update changelog, random_early_detection_congestion_check nameupdate and minor comment fix. b818f12 Extented network status for support dropped tx congestion packet. 11c0763 Added new service Random early detection f2c358d Optimized medium NWK MPL parameters to 40 second multicast interval (ARMmbed#2508) c013bc7 Added traces to EAPOL TX failure c29ee94 Changed TLS return value to int32_t 501a2c8 Added trace for mbed TLS errors 9d7cd22 Updated change log 1290225 Corrected radius message memory allocation 7b1c596 Removed trace print's efb8393 Adaptation layer MCPS confirmation handle update ac1025e Bug Fix: Accept only next possible BSI for detect BR reboot and drop unkown's. 58f0e56 Updated change log 102e525 Nanostack now indicates connection down on RPL local repair start 395791d FHSS WS: Do not allow broadcast TX on unicast channel (ARMmbed#2501) 72f8ecb Updated changelog.md 2376208 Activated higher priority by traffic class CS6 for NS/NA and RPL, EAPOL/ DHCP Relay messages. afbe906 Adaptation layer update 13fb2bf Update CHANGELOG.md af81c48 DIO init TX filter update 13a872c Fix typos in github template (ARMmbed#2498) 1af20e1 Initial version of CHANGELOG (ARMmbed#2497) d9874ed Feature update: Improved MAC TX queue purge 6926442 Wi-SUN Aro registration temporary address registation bug fix. d3170ed Removed generic event and wrong trace info. 0db3486 Removed trace from place which is normal and not needed a080f18 Added debug tarce for dropped unsecured and MPL packets. 51cd564 Wi-SUN NS probe update: 579f756 Adaptation layer: Do not push CCA failed packet back to MAC (Wi-SUN) (ARMmbed#2487) git-subtree-dir: features/nanostack/sal-stack-nanostack git-subtree-split: 35b95da
1 parent 04c21e7 commit dad2952

34 files changed

+730
-93
lines changed

nanostack/nwk_stats_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ typedef struct nwk_stats_t {
7373
/* MAC */
7474
uint16_t adapt_layer_tx_queue_size; /**< Adaptation layer direct TX queue size. */
7575
uint16_t adapt_layer_tx_queue_peak; /**< Adaptation layer direct TX queue size peak. */
76+
uint32_t adapt_layer_tx_congestion_drop; /**< Adaptation layer direct TX randon early detection drop packet. */
7677
} nwk_stats_t;
7778

7879
/**

nanostack/platform/arm_hal_phy.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,25 @@ typedef enum {
175175
MODULATION_INDEX_UNDEFINED ///< Modulation index undefined
176176
} phy_modulation_index_e;
177177

178+
/** OFDM option */
179+
typedef enum {
180+
OFDM_OPTION_1 = 1, ///< OFDM option 1
181+
OFDM_OPTION_2 = 2, ///< OFDM option 2
182+
OFDM_OPTION_3 = 3, ///< OFDM option 3
183+
OFDM_OPTION_4 = 4 ///< OFDM option 4
184+
} phy_ofdm_option_e;
185+
186+
/** Modulation and coding scheme (OFDM) */
187+
typedef enum {
188+
OFDM_MCS_0 = 0, ///< OFDM MCS 0
189+
OFDM_MCS_1 = 1, ///< OFDM MCS 1
190+
OFDM_MCS_2 = 2, ///< OFDM MCS 2
191+
OFDM_MCS_3 = 3, ///< OFDM MCS 3
192+
OFDM_MCS_4 = 4, ///< OFDM MCS 4
193+
OFDM_MCS_5 = 5, ///< OFDM MCS 5
194+
OFDM_MCS_6 = 6 ///< OFDM MCS 6
195+
} phy_ofdm_mcs_e;
196+
178197
/**
179198
* @brief enum phy_802_15_4_mode_t IEEE 802.15.4 mode
180199
*
@@ -192,6 +211,9 @@ typedef struct phy_rf_channel_configuration_s {
192211
uint16_t number_of_channels; ///< Number of channels
193212
phy_modulation_e modulation; ///< Modulation scheme
194213
phy_modulation_index_e modulation_index; ///< Modulation index
214+
bool fec; ///< Forward error correction, true - enabled, false - disabled
215+
phy_ofdm_option_e ofdm_option; ///< OFDM option
216+
phy_ofdm_mcs_e ofdm_mcs; ///< OFDM modulation and coding scheme
195217
} phy_rf_channel_configuration_s;
196218

197219
/** Channel page configuration */

nanostack/ws_bbr_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ int ws_bbr_start(int8_t interface_id, int8_t backbone_interface_id);
9696
#define BBR_GUA_ROUTE 0x0002 /**< More specific route is added for GUA prefix */
9797
#define BBR_BB_WAIT 0x0004 /**< Wait backbone availability before starting Wi-SUN network */
9898
#define BBR_DEFAULT_ROUTE 0x0008 /**< Add default route parameter to DIO */
99-
#define BBR_REQUIRE_DAO_REFRESH 0x0010 /**< Do not increment PAN version number when active forces DAO update from nodes*/
99+
#define BBR_REQUIRE_DAO_REFRESH 0x0000 /**< Deprecated DAO Refresh is now the default functionality*/
100+
#define BBR_PERIODIC_VERSION_INC 0x0010 /**< Increment PAN version number Periodically*/
100101
#define BBR_GUA_SLAAC 0x0020 /**< in Global prefix use SLAAC address generation to reduce traffic during bootstrap */
101102

102103
/**

source/6LoWPAN/Bootstraps/Generic/protocol_6lowpan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,15 @@ bool protocol_6lowpan_latency_estimate_get(int8_t interface_id, uint32_t *latenc
799799

800800
if (cur_interface->eth_mac_api) {
801801
// either PPP or Ethernet interface.
802-
latency_estimate = 100;
802+
latency_estimate = 1000;
803803
} else if (thread_info(cur_interface)) {
804804
// thread network
805-
latency_estimate = 2000;
805+
latency_estimate = 5000;
806806
} else if (ws_info(cur_interface)) {
807807
latency_estimate = ws_common_latency_estimate_get(cur_interface);
808808
} else {
809809
// 6LoWPAN ND
810-
latency_estimate = 8000;
810+
latency_estimate = 20000;
811811
}
812812

813813
if (latency_estimate != 0) {

source/6LoWPAN/ND/nd_router_object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ bool nd_ns_aro_handler(protocol_interface_info_entry_t *cur_interface, const uin
930930
/* TODO - check hard upper limit on registrations? */
931931
if (ws_info(cur_interface)) {
932932

933-
aro_out->status = ws_common_allow_child_registration(cur_interface, aro_out->eui64);
933+
aro_out->status = ws_common_allow_child_registration(cur_interface, aro_out->eui64, aro_out->lifetime);
934934
if (aro_out->status != ARO_SUCCESS) {
935935
aro_out->present = true;
936936
return true;

0 commit comments

Comments
 (0)