diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-05-19 17:53:16 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-05-19 17:53:16 +0200 |
commit | c1e5f4714d591cc0a5e986613fdefa61abe98ac2 (patch) | |
tree | 41e8b20e1c93e142f5dfbca513fbb770445102c6 /net/wireless/ibss.c | |
parent | 3b3a0162fade6b83d5c83efafcd5adb9e4537047 (diff) | |
download | op-kernel-dev-c1e5f4714d591cc0a5e986613fdefa61abe98ac2.zip op-kernel-dev-c1e5f4714d591cc0a5e986613fdefa61abe98ac2.tar.gz |
cfg80211: constify more pointers in the cfg80211 API
This also propagates through the drivers.
The orinoco driver uses the cfg80211 API structs for internal
bookkeeping, and so needs a (void *) cast that removes the
const - but that's OK because it allocates those pointers.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/ibss.c')
-rw-r--r-- | net/wireless/ibss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c index 6b50588..8f345da 100644 --- a/net/wireless/ibss.c +++ b/net/wireless/ibss.c @@ -420,8 +420,8 @@ int cfg80211_ibss_wext_siwessid(struct net_device *dev, if (len > 0 && ssid[len - 1] == '\0') len--; + memcpy(wdev->ssid, ssid, len); wdev->wext.ibss.ssid = wdev->ssid; - memcpy(wdev->wext.ibss.ssid, ssid, len); wdev->wext.ibss.ssid_len = len; wdev_lock(wdev); |