commit | 37aa80a5ec8c542d69dcd8351d561ec7952198ff | [log] [tgz] |
---|---|---|
author | Sourav Mohapatra <mohapatr@codeaurora.org> | Wed Oct 31 10:57:00 2018 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Thu Nov 29 04:42:21 2018 -0800 |
tree | b2b1ed89ee680bdffe6a31504e1af6a82771a5e6 | |
parent | 36177e1b566ccb204a688a880e7c9738a036ce8a [diff] |
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