projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7aceef
)
nl80211: use ie_len in scheduled scan
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 4 Feb 2014 20:01:25 +0000
(21:01 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 12 Feb 2014 14:07:18 +0000
(15:07 +0100)
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>
net/wireless/nl80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index ebea1a197afb368faadfc90d1f97f2ffa6e1bcff..179786494308580a247f5fe52a487a32cb869555 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-5709,8
+5709,8
@@
static int nl80211_start_sched_scan(struct sk_buff *skb,
request->min_rssi_thold = NL80211_SCAN_RSSI_THOLD_OFF;
}
- if (i
nfo->attrs[NL80211_ATTR_IE]
) {
- request->ie_len =
nla_len(info->attrs[NL80211_ATTR_IE])
;
+ if (i
e_len
) {
+ request->ie_len =
ie_len
;
memcpy((void *)request->ie,
nla_data(info->attrs[NL80211_ATTR_IE]),
request->ie_len);