Merge pull request #6600 from hasnainvirk/fix_au915

[IOTCELL] Setting up channels for AU915
pull/6615/merge
Cruz Monrreal 2018-04-13 10:47:21 -05:00 committed by GitHub
commit 4343253533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -263,15 +263,22 @@ LoRaPHYAU915::LoRaPHYAU915(LoRaWANTimeHandler &lora_time)
// transmission on the same channel
copy_channel_mask(current_channel_mask, channel_mask, AU915_CHANNEL_MASK_SIZE);
// set bands for EU868 spectrum
// set default channels
phy_params.channels.channel_list = channels;
phy_params.channels.channel_list_size = AU915_MAX_NB_CHANNELS;
phy_params.channels.mask = channel_mask;
phy_params.channels.default_mask = default_channel_mask;
phy_params.channels.mask_size = AU915_CHANNEL_MASK_SIZE;
// set bands for AU915 spectrum
phy_params.bands.table = (void *) bands;
phy_params.bands.size = AU915_MAX_NB_BANDS;
// set bandwidths available in EU868 spectrum
// set bandwidths available in AU915 spectrum
phy_params.bandwidths.table = (void *) bandwidths_AU915;
phy_params.bandwidths.size = 16;
// set data rates available in EU868 spectrum
// set data rates available in AU915 spectrum
phy_params.datarates.table = (void *) datarates_AU915;
phy_params.datarates.size = 16;