| commit | 967d8b5b59f6107af43a9979b34998b60f97f0ec | [log] [tgz] |
|---|---|---|
| author | Johan Hedberg <johan.hedberg@intel.com> | Thu Nov 30 21:41:18 2017 +0200 |
| committer | Johan Hedberg <johan.hedberg@gmail.com> | Fri Dec 01 12:28:56 2017 +0200 |
| tree | 1d98ed5694e22efadd381977e52c18e29e6f98fd | |
| parent | a3448aba9fc5c5b135113498c30d9cacbb3b63bd [diff] |
Bluetooth: Mesh: Fix beacon cache handling The beacon cache handling was severely broken in the way that the cache_add() function was incorrectly mapping net_idx to array index, which could have lead to array overflows. To fix this, while also cleaning things up, move the cache to the actual bt_mesh_subnet struct. This e.g. lets us avoid having to track the net_idx twice. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>