Commit 501690cb93c4df30700c1bf40f0f2eaed2444503
1 parent
2062183df0
Exists in
smarc-8m-android-10.0.0_2.6.0
and in
1 other branch
MA-18214-1 Hard code the BT mac address for imx8mp
imx8mp has serial number as all zeros, hard code the BT mac address for such case instead of setting it by property. Test: BT on imx8mp. Change-Id: I99f5b49164e1fa40c7fc6ecb639c71fa89158852 Signed-off-by: Ji Luo <ji.luo@nxp.com>
Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff
common/image-android.c
... | ... | @@ -80,8 +80,13 @@ |
80 | 80 | " androidboot.btmacaddr=%c%c:%c%c:%c%c:%c%c:%c%c:%c%c", |
81 | 81 | bd_addr[0],bd_addr[1],bd_addr[2],bd_addr[3],bd_addr[4],bd_addr[5], |
82 | 82 | bd_addr[6],bd_addr[7],bd_addr[8],bd_addr[9],bd_addr[10],bd_addr[11]); |
83 | - strncat(commandline, newbootargs, COMMANDLINE_LENGTH - strlen(commandline)); | |
83 | + } else { | |
84 | + /* Some boards have serial number as all zeros (imx8mp), | |
85 | + * hard code the bt mac address for such case. */ | |
86 | + sprintf(newbootargs, " androidboot.btmacaddr=22:22:67:C6:69:73"); | |
84 | 87 | } |
88 | + | |
89 | + strncat(commandline, newbootargs, COMMANDLINE_LENGTH - strlen(commandline)); | |
85 | 90 | #endif |
86 | 91 | |
87 | 92 | /* append soc type into bootargs */ |