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"
This commit is contained in:
Dieter Spaar 2011-09-03 14:11:24 +02:00 committed by Harald Welte
parent cab0d7bedc
commit 6b353778c4
1 changed files with 1 additions and 1 deletions

View File

@ -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,