1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-*ctl: fix and enhance wfd_subelement parser

This commit is contained in:
Derek Dai 2017-02-18 18:28:16 +08:00
parent 495675cdd4
commit 750ff77929
No known key found for this signature in database
GPG key ID: E109CC97553EF009
3 changed files with 34 additions and 22 deletions

View file

@ -16,9 +16,8 @@ if [[ ${#2} != 17 ]]; then
exit 1
fi
# since this wfd subelement is used for device info, so no wfd subelemnt
# id needed (eg. 000600101b4400c8 vs 00000600101b4400c8)
wfd_subelems=000600101c4400c8
# this wfd_subelems has no ID (00, device info)
wfd_subelems=000600111c4400c8
link_index="_3${1:0:1}${1:1}"
peer_id="${2//:/_3a}_40$1"