Skip to content

Commit ec34796

Browse files
author
Hasnain Virk
committed
[IOTCELL] Setting up channels for AU915
Bug was reported by @tpet93 and it was correctly diagnosed that channels were not being set in the phy_params structure. This commit fixes the bug and sets up channels correctly.
1 parent 3bc2d2e commit ec34796

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

features/lorawan/lorastack/phy/LoRaPHYAU915.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,22 @@ LoRaPHYAU915::LoRaPHYAU915(LoRaWANTimeHandler &lora_time)
263263
// transmission on the same channel
264264
copy_channel_mask(current_channel_mask, channel_mask, AU915_CHANNEL_MASK_SIZE);
265265

266-
// set bands for EU868 spectrum
266+
// set default channels
267+
phy_params.channels.channel_list = channels;
268+
phy_params.channels.channel_list_size = AU915_MAX_NB_CHANNELS;
269+
phy_params.channels.mask = channel_mask;
270+
phy_params.channels.default_mask = default_channel_mask;
271+
phy_params.channels.mask_size = AU915_CHANNEL_MASK_SIZE;
272+
273+
// set bands for AU915 spectrum
267274
phy_params.bands.table = (void *) bands;
268275
phy_params.bands.size = AU915_MAX_NB_BANDS;
269276

270-
// set bandwidths available in EU868 spectrum
277+
// set bandwidths available in AU915 spectrum
271278
phy_params.bandwidths.table = (void *) bandwidths_AU915;
272279
phy_params.bandwidths.size = 16;
273280

274-
// set data rates available in EU868 spectrum
281+
// set data rates available in AU915 spectrum
275282
phy_params.datarates.table = (void *) datarates_AU915;
276283
phy_params.datarates.size = 16;
277284

0 commit comments

Comments
 (0)