drivers/at86rf215: Incorrect channel number set for subGHz #15906
Labels
Area: network
Area: Networking
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
Inside the
at86rf215_reset_and_cfg()
function, the channel number for subGHz radio is set toCONFIG_AT86RF215_DEFAULTL_SUBGHZ_CHANNEL
(5) at the start ofat86rf215_reset_and_cfg(dev)
function but is later set to zero while initialising the modulation for the radio in_end_configure_OQPSK(dev)
.This stops the user from using a channel number since
_end_configure_OQPSK(dev)
will always set the channel number to 0.Steps to reproduce the issue
Run the basic gnrc_networking example and execute the command
ifconfig
on the shell to see the interface configuration.Hardware used:
Board: nucleo-l476rg
Radio: at86rf215
Expected results
The channel number is set to the number in
CONFIG_AT86RF215_DEFAULTL_SUBGHZ_CHANNEL
(or a valid number isCONFIG_AT86RF215_DEFAULTL_SUBGHZ_CHANNEL
isn't valid)Actual results
Versions
The text was updated successfully, but these errors were encountered: