drivers: ieee802154_rf2xx: Fix logical operation

Fix using AND instead of OR.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2023-01-17 17:09:05 +02:00 committed by Fabio Baltieri
parent 2571d6c3e3
commit ec8c9f05fc

View file

@ -432,7 +432,7 @@ static int rf2xx_set_channel(const struct device *dev, uint16_t channel)
if (ctx->trx_model == RF2XX_TRX_MODEL_212) {
if ((ctx->cc_page == RF2XX_TRX_CC_PAGE_0
&& ctx->cc_page == RF2XX_TRX_CC_PAGE_2)
|| ctx->cc_page == RF2XX_TRX_CC_PAGE_2)
&& channel > 10) {
LOG_ERR("Unsupported channel %u", channel);
return -EINVAL;