diff options
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index b3d5c1df08dd..667a87d307da 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -3002,10 +3002,9 @@ static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info) | |||
3002 | goto out; | 3002 | goto out; |
3003 | } | 3003 | } |
3004 | 3004 | ||
3005 | request->channels = (void *)((char *)request + sizeof(*request)); | ||
3006 | request->n_channels = n_channels; | 3005 | request->n_channels = n_channels; |
3007 | if (n_ssids) | 3006 | if (n_ssids) |
3008 | request->ssids = (void *)(request->channels + n_channels); | 3007 | request->ssids = (void *)&request->channels[n_channels]; |
3009 | request->n_ssids = n_ssids; | 3008 | request->n_ssids = n_ssids; |
3010 | if (ie_len) { | 3009 | if (ie_len) { |
3011 | if (request->ssids) | 3010 | if (request->ssids) |