mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacmn: Rewrite util_gen_new_bssid functionality
__aeabi_uldivmod error is seen in 32 bit WIN platform. Rewrite the function to avoid the insmode error. Change-Id: I93e00222514f2969ac49a3c530c5436a5a542a25
This commit is contained in:
parent
7fa23c1502
commit
f069fccaa6
1 changed files with 1 additions and 1 deletions
|
|
@ -1236,7 +1236,7 @@ static void util_gen_new_bssid(uint8_t *bssid, uint8_t max_bssid,
|
|||
lsb_n = bssid_tmp & ((1 << max_bssid) - 1);
|
||||
new_bssid = bssid_tmp;
|
||||
new_bssid &= ~((1 << max_bssid) - 1);
|
||||
new_bssid |= (lsb_n + mbssid_index) % (1 << max_bssid);
|
||||
new_bssid |= qdf_do_div((lsb_n + mbssid_index), (1 << max_bssid));
|
||||
|
||||
for (i = QDF_MAC_ADDR_SIZE - 1; i >= 0; i--) {
|
||||
new_bssid_addr[i] = new_bssid & 0xff;
|
||||
|
|
|
|||
Loading…
Reference in a new issue