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:
parent
c9763a3de4
commit
1f229b344e
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue