comgt-ncm: fix modem manufacturer detection
authorJakub Łabuz <jakub@labuz.dev>
Fri, 11 Apr 2025 16:33:49 +0000 (18:33 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 17 Apr 2025 23:37:48 +0000 (01:37 +0200)
commit2eb7e4bf61bda231220c46f96696fe5c98c5858f
tree03d6307d07dad49455220889b84717e151411f0e
parent5d26507a73b166e6a47522478455bb95bc73672b
comgt-ncm: fix modem manufacturer detection

Fix an issue where NCM interface initialization fails because of wrong
modem manufacturer detection.

gcom call returns an output with Windows-style line breaks (containing \r)
what makes awk call return empty or malformed manufacturer name. Changing
awk RS variable to handle both \n and \r\n as line break fixes this issue.

Fixes #17448 and #17998 GitHub issues.

Signed-off-by: Jakub Łabuz <jakub@labuz.dev>
Link: https://github.com/openwrt/openwrt/pull/18460
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/utils/comgt/files/ncm.sh