mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacmn: Fix ME buf pool initialization
Free list created from ME buf pool expects next pointer to be first element in the me buf. Change me buf structure to keep next pointer as the first element. Also, Fix offsets in ME free list creation. Change-Id: I2dffd0c04ba8514d0d1a5f5e6b14380902d1ec06 CRs-Fixed: 2077675
This commit is contained in:
parent
dd67f457f8
commit
a4cd297f84
2 changed files with 5 additions and 4 deletions
|
|
@ -72,8 +72,7 @@ dp_tx_me_init(struct dp_pdev *pdev)
|
|||
p = pdev->me_buf.freelist;
|
||||
for (i = 0; i < num_pool_elems-1; i++) {
|
||||
p->next = (struct dp_tx_me_buf_t *)
|
||||
((char *)p + pdev->me_buf.size +
|
||||
sizeof(struct dp_tx_me_buf_t));
|
||||
((char *)p + pdev->me_buf.size);
|
||||
p = p->next;
|
||||
}
|
||||
p->next = NULL;
|
||||
|
|
|
|||
|
|
@ -1140,11 +1140,13 @@ struct dp_invalid_peer_msg {
|
|||
|
||||
/*
|
||||
* dp_tx_me_buf_t: ME buffer
|
||||
* data: Destination Mac address
|
||||
* next: pointer to next buffer
|
||||
* data: Destination Mac address
|
||||
*/
|
||||
struct dp_tx_me_buf_t {
|
||||
uint8_t data[DP_MAC_ADDR_LEN];
|
||||
/* Note: ME buf pool initialization logic expects next pointer to
|
||||
* be the first element. Dont add anything before next */
|
||||
struct dp_tx_me_buf_t *next;
|
||||
uint8_t data[DP_MAC_ADDR_LEN];
|
||||
};
|
||||
#endif /* _DP_TYPES_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue