aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorDieter Spaar <spaar@mirider.augusta.de>2011-09-03 14:11:24 +0200
committerHarald Welte <laforge@gnumonks.org>2011-09-03 14:11:24 +0200
commit6b353778c4329deb27f69301c050e0b6e55d4df6 (patch)
treea9777d7ce62f47f4306ee1bb335ebf0124e2e9b8 /openbsc/src
parentcab0d7bedc7d4a78c2ace645c5a3c94702d5bb40 (diff)
bsc_api: Make sure to use correct MS Power on ASSIGNMENT CMD
When gsm48_send_rr_ass_cmd() is being called to send the ASSIGNMENT COMMAND, we need to use the propwer lchan->ms_power setting, not some fixed magic "0x3" number. Without this patch, every MS would transmit at a very high output power fullowing an assignment command - more than what was set in the config file with "ms max power"
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/libbsc/bsc_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/bsc_api.c b/openbsc/src/libbsc/bsc_api.c
index 8ddbc6cd3..9504e538c 100644
--- a/openbsc/src/libbsc/bsc_api.c
+++ b/openbsc/src/libbsc/bsc_api.c
@@ -665,7 +665,7 @@ static void handle_chan_ack(struct gsm_subscriber_connection *conn,
return;
LOGP(DMSC, LOGL_NOTICE, "Sending assignment on chan: %p\n", lchan);
- gsm48_send_rr_ass_cmd(conn->lchan, lchan, 0x3);
+ gsm48_send_rr_ass_cmd(conn->lchan, lchan, lchan->ms_power);
}
static void handle_chan_nack(struct gsm_subscriber_connection *conn,