Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37aa80a5 authored by Sourav Mohapatra's avatar Sourav Mohapatra Committed by Gerrit - the friendly Code Review server
Browse files

wlan: Rectify the correct size while putting wifi stats

Presently there is an error in the calculation of the size.
The member tSirWifiRateStat is an static array of size 1 and not a
pointer. Thus while incrementing the size for the next instance, a page
fault occurs.

Instead of using numRates, use numRates-1 as the structure already
accounts for the first size.

Change-Id: Ic92179d1eb324f2092887a487f4a32598298a1b3
CRs-Fixed: 2357163
parent 36177e1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment