-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert the tx/rx power unit to the dBm unit #377
Conversation
…transceiver_bulk_status(). The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm. It should be converted to the dBm in get_transceiver_bulk_status(). Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
the content of rx_power[x] or tx_power[x] will be "N/A"
@chiourung can you add unit test for code-coverage? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add testcases to improve code coverage for the changeset since the PR check is failing due to this currently.
Done |
Done |
@yxieca @StormLiangMS can you cherry pick this fix to 202305 and 202205 |
The corresponding ADO is 15934138 |
* JIRA-SONIC-7072: Convert the tx/rx power unit to the dBm unit in get_transceiver_bulk_status(). The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm. It should be converted to the dBm in get_transceiver_bulk_status(). Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com> --------- Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com> Co-authored-by: Prince George <45705344+prgeor@users.noreply.github.com>
* JIRA-SONIC-7072: Convert the tx/rx power unit to the dBm unit in get_transceiver_bulk_status(). The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm. It should be converted to the dBm in get_transceiver_bulk_status(). Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com> --------- Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com> Co-authored-by: Prince George <45705344+prgeor@users.noreply.github.com>
Description
The tx/rx power unit in the eeprom is mW, and the tx/rx power unit for the API is dBm. It should be converted to the dBm in get_transceiver_bulk_status().
Signed-off-by: chiourung_huang chiourung_huang@edge-core.com