ussd: Move to use gsm_7bit_encode_n_ussd for USSD encoding

The legacy functions have a bad/wrong return value for the number
of septets in the string. Change the code to use the new functions
which will fix encoding issues as well.
This commit is contained in:
Holger Hans Peter Freyther 2013-12-26 22:17:45 +01:00
parent c9763a3de4
commit 1f229b344e
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ int gsm0480_send_ussd_response(struct gsm_subscriber_connection *conn,
/* First put the payload text into the message */
ptr8 = msgb_put(msg, 0);
response_len = gsm_7bit_encode(ptr8, response_text);
gsm_7bit_encode_n_ussd(ptr8, msgb_tailroom(msg), response_text, &response_len);
msgb_put(msg, response_len);
/* Then wrap it as an Octet String */