commit | 1ecb486f17adcc03fb8bea4bc51b23176adf2bbc | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Mon Nov 06 12:28:29 2017 +0200 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Tue Nov 07 18:59:06 2017 +0300 |
tree | 5fab2ddd07676564125d7ba6c22af771d824a47f | |
parent | d118fff2322f4f59c9cdf6bb7ef01e7ee709dc15 [diff] |
Bluetooth: Mesh: Simplify & fix net credentials selection The Mesh spec expects us to fall back to master credentials if friendship ones are not available. Also remove an unnecessary branch with the help of a new 'idx' variable. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>