]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix mesh_add_rsn_ie IE finding loop
authorBob Copeland <me@bobcopeland.com>
Tue, 15 Apr 2014 14:43:07 +0000 (10:43 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Apr 2014 15:24:49 +0000 (17:24 +0200)
commite38c6e5114e3917c75f9acf19545898e06386e36
treec146ae7436f4ba1676b5b5515ad6371b6503f52d
parent38d90f7273703f76f97fcba10816ad05e1b30f6a
mac80211: fix mesh_add_rsn_ie IE finding loop

Previously, the code to copy the RSN IE from the mesh config
would increment its pointer by one in the loop instead of by
the element length, so there was the potential for mistaking
another IE's data fields as the RSN IE.

cfg80211_find_ie() exists, so just use that.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c