aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/wireless/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-05-19 17:53:16 +0200
committerJohannes Berg <johannes.berg@intel.com>2014-05-19 17:53:16 +0200
commitc1e5f4714d591cc0a5e986613fdefa61abe98ac2 (patch)
tree41e8b20e1c93e142f5dfbca513fbb770445102c6 /net/wireless/util.c
parentcfg80211: constify MAC addresses in cfg80211 ops (diff)
downloadwireguard-linux-c1e5f4714d591cc0a5e986613fdefa61abe98ac2.tar.xz
wireguard-linux-c1e5f4714d591cc0a5e986613fdefa61abe98ac2.zip
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/util.c')
-rw-r--r--net/wireless/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 8c61d5c6fad3..fa61ac9c9b26 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -476,7 +476,8 @@ int ieee80211_data_to_8023(struct sk_buff *skb, const u8 *addr,
EXPORT_SYMBOL(ieee80211_data_to_8023);
int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr,
- enum nl80211_iftype iftype, u8 *bssid, bool qos)
+ enum nl80211_iftype iftype,
+ const u8 *bssid, bool qos)
{
struct ieee80211_hdr hdr;
u16 hdrlen, ethertype;