File tree Expand file tree Collapse file tree 3 files changed +32
-7
lines changed
doc/nrf/releases_and_maturity/releases Expand file tree Collapse file tree 3 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,12 @@ Modem libraries
430430
431431* :ref: `lte_lc_readme ` library:
432432
433- * Added support for new PDN events :c:enumerator: `LTE_LC_EVT_PDN_SUSPENDED ` and :c:enumerator: `LTE_LC_EVT_PDN_RESUMED `.
433+ * Added:
434+
435+ * Support for new PDN events :c:enumerator: `LTE_LC_EVT_PDN_SUSPENDED ` and :c:enumerator: `LTE_LC_EVT_PDN_RESUMED `.
436+ * The :kconfig:option: `CONFIG_LTE_LOCK_BAND_LIST ` Kconfig option to set bands for the LTE band lock using a comma-separated list of band numbers.
437+
438+ * Removed the default value for the :kconfig:option: `CONFIG_LTE_LOCK_BAND_MASK ` Kconfig option.
434439
435440Multiprotocol Service Layer libraries
436441-------------------------------------
Original file line number Diff line number Diff line change @@ -114,16 +114,28 @@ config LTE_SHELL
114114config LTE_LOCK_BANDS
115115 bool "LTE band lock"
116116 help
117- Enable LTE band lock. Bands not enabled in LTE_LOCK_BAND_MASK
118- are not used when this setting is enabled.
117+ Enable LTE band lock. Only configured bands are used when this setting is enabled.
118+ The allowed bands can be configured using the CONFIG_LTE_LOCK_BAND_MASK and
119+ CONFIG_LTE_LOCK_BAND_LIST options. If both are configured, the bands are combined
120+ from both options.
119121
120122if LTE_LOCK_BANDS
123+
121124config LTE_LOCK_BAND_MASK
122125 string "LTE band lock mask bit string"
123- default "10000001000000001100"
124126 help
125- Bit string of enabled bands. LSB is band 1. Leading zeroes
126- can be omitted. The maximum length is 88 characters.
127+ Bit string of enabled bands. LSB is band 1. Leading zeroes can be omitted.
128+ The maximum length is 88 characters, meaning this can be used with band numbers up to 88.
129+
130+ config LTE_LOCK_BAND_LIST
131+ string "LTE band list"
132+ help
133+ List of enabled bands. Comma-separated list of band numbers.
134+ Can be used with all valid band numbers, including bands over 88.
135+ This is only supported by the following modem firmware:
136+ - mfw_nrf91x1 v2.0.3 or later
137+ - mfw_nrf9151-ntn
138+
127139endif # LTE_LOCK_BANDS
128140
129141config LTE_PLMN_SELECTION_OPTIMIZATION
Original file line number Diff line number Diff line change 1717LOG_MODULE_DECLARE (lte_lc , CONFIG_LTE_LINK_CONTROL_LOG_LEVEL );
1818
1919#if defined(CONFIG_LTE_LOCK_BANDS )
20+ BUILD_ASSERT (sizeof (CONFIG_LTE_LOCK_BAND_MASK ) > 1 || sizeof (CONFIG_LTE_LOCK_BAND_LIST ) > 1 ,
21+ "CONFIG_LTE_LOCK_BAND_MASK or CONFIG_LTE_LOCK_BAND_LIST must be set" );
2022static void band_lock_set (void )
2123{
2224 int err ;
2325
2426 /* Set LTE band lock (volatile setting).
2527 * Has to be done every time before activating the modem.
2628 */
27- err = nrf_modem_at_printf ("AT%%XBANDLOCK=2,\"" CONFIG_LTE_LOCK_BAND_MASK "\"" );
29+ if (sizeof (CONFIG_LTE_LOCK_BAND_LIST ) > 1 ) {
30+ err = nrf_modem_at_printf ("AT%%XBANDLOCK=2,\"" CONFIG_LTE_LOCK_BAND_MASK "\",\""
31+ CONFIG_LTE_LOCK_BAND_LIST "\"" );
32+ } else {
33+ err = nrf_modem_at_printf ("AT%%XBANDLOCK=2,\"" CONFIG_LTE_LOCK_BAND_MASK "\"" );
34+ }
35+
2836 if (err ) {
2937 LOG_ERR ("Failed to lock LTE bands, err %d" , err );
3038 }
You can’t perform that action at this time.
0 commit comments