aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-02-04 15:01:25 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-02-12 09:07:18 -0500
commit9900e4843c6c95cc951a642e337478831429be88 (patch)
tree65e65aa55a9e83a13bfceb413a59abb8de584218 /net/wireless/nl80211.c
parente7aceef4ac3180bd93d4c0d3fe23775850b6c31d (diff)
nl80211: use ie_len in scheduled scan
We've already checked the IE length and assigned request->ie based on that, so continue using it to make the code a bit clearer. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index ebea1a197afb..179786494308 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -5709,8 +5709,8 @@ static int nl80211_start_sched_scan(struct sk_buff *skb,
5709 request->min_rssi_thold = NL80211_SCAN_RSSI_THOLD_OFF; 5709 request->min_rssi_thold = NL80211_SCAN_RSSI_THOLD_OFF;
5710 } 5710 }
5711 5711
5712 if (info->attrs[NL80211_ATTR_IE]) { 5712 if (ie_len) {
5713 request->ie_len = nla_len(info->attrs[NL80211_ATTR_IE]); 5713 request->ie_len = ie_len;
5714 memcpy((void *)request->ie, 5714 memcpy((void *)request->ie,
5715 nla_data(info->attrs[NL80211_ATTR_IE]), 5715 nla_data(info->attrs[NL80211_ATTR_IE]),
5716 request->ie_len); 5716 request->ie_len);