Skip to content

Commit

Permalink
fix channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Aug 17, 2023
1 parent e44e6be commit c2580b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/rtw_rf.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset)
}

/* 2.4G, 40MHz */
if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) {
//if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) {
if (cch >= 3 && cch <= 14 && bw == CHANNEL_WIDTH_40) { // OpenHD fix:
t_cch = (offset == HAL_PRIME_CHNL_OFFSET_UPPER) ? cch + 2 : cch - 2;
goto exit;
}
Expand All @@ -234,7 +235,8 @@ u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset)
goto exit;

/* 5G, 40MHz */
} else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) {
//} else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) {
} else if (cch >= 32 && cch <= 177 && bw == CHANNEL_WIDTH_40) { //OpenHD fix:
t_cch = (offset == HAL_PRIME_CHNL_OFFSET_UPPER) ? cch + 2 : cch - 2;
goto exit;

Expand Down

0 comments on commit c2580b6

Please sign in to comment.