This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/25523 )
Change subject: lms,uhd: Skip re-assigning same band
......................................................................
lms,uhd: Skip re-assigning same band
There's no need to spend time looking up again the same band
description.
Change-Id: I6f5631c9e64b9c261d52a856d757d08d2f336947
---
M Transceiver52M/device/lms/LMSDevice.cpp
M Transceiver52M/device/uhd/UHDDevice.cpp
2 files changed, 8 insertions(+), 4 deletions(-)
  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/23/25523/1
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 7aa8aa6..a83e04f 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -246,8 +246,10 @@
 		return false;
 	}
 
-	band = req_band;
-	assign_band_desc(band);
+	if (band == 0) {
+		band = req_band;
+		assign_band_desc(band);
+	}
 	return true;
 }
 
diff --git a/Transceiver52M/device/uhd/UHDDevice.cpp b/Transceiver52M/device/uhd/UHDDevice.cpp
index dd0a420..9375aa9 100644
--- a/Transceiver52M/device/uhd/UHDDevice.cpp
+++ b/Transceiver52M/device/uhd/UHDDevice.cpp
@@ -264,8 +264,10 @@
 		return false;
 	}
 
-	band = req_band;
-	assign_band_desc(band);
+	if (band == 0) {
+		band = req_band;
+		assign_band_desc(band);
+	}
 	return true;
 }
 
-- 
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/25523
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I6f5631c9e64b9c261d52a856d757d08d2f336947
Gerrit-Change-Number: 25523
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210921/80644b44/attachment.htm>