aboutsummaryrefslogtreecommitdiffstats
path: root/src/mslot_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mslot_class.c')
-rw-r--r--src/mslot_class.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mslot_class.c b/src/mslot_class.c
index ff40f297..caab2b51 100644
--- a/src/mslot_class.c
+++ b/src/mslot_class.c
@@ -14,14 +14,11 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <mslot_class.h>
#include <gprs_debug.h>
+#include <gprs_pcu.h>
#include <osmocom/core/bits.h>
#include <osmocom/core/utils.h>
@@ -90,7 +87,7 @@ static const struct gprs_ms_multislot_class gprs_ms_multislot_class[] = {
static inline const struct gprs_ms_multislot_class *get_mslot_table(uint8_t ms_cl)
{
- uint8_t index = ms_cl ? ms_cl : DEFAULT_MSLOT_CLASS;
+ uint8_t index = ms_cl ? ms_cl : the_pcu->vty.msclass_default;
if (ms_cl >= ARRAY_SIZE(gprs_ms_multislot_class))
index = 0;