diff options
-rw-r--r-- | drivers/net/wireless/libertas_tf/cmd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas_tf/libertas_tf.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 2 | ||||
-rw-r--r-- | include/net/mac80211.h | 2 | ||||
-rw-r--r-- | net/mac80211/main.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas_tf/cmd.c b/drivers/net/wireless/libertas_tf/cmd.c index 3d3914c83b14..28790e03dc43 100644 --- a/drivers/net/wireless/libertas_tf/cmd.c +++ b/drivers/net/wireless/libertas_tf/cmd.c | |||
@@ -286,7 +286,7 @@ void lbtf_set_mode(struct lbtf_private *priv, enum lbtf_mode mode) | |||
286 | lbtf_cmd_async(priv, CMD_802_11_SET_MODE, &cmd.hdr, sizeof(cmd)); | 286 | lbtf_cmd_async(priv, CMD_802_11_SET_MODE, &cmd.hdr, sizeof(cmd)); |
287 | } | 287 | } |
288 | 288 | ||
289 | void lbtf_set_bssid(struct lbtf_private *priv, bool activate, u8 *bssid) | 289 | void lbtf_set_bssid(struct lbtf_private *priv, bool activate, const u8 *bssid) |
290 | { | 290 | { |
291 | struct cmd_ds_set_bssid cmd; | 291 | struct cmd_ds_set_bssid cmd; |
292 | 292 | ||
diff --git a/drivers/net/wireless/libertas_tf/libertas_tf.h b/drivers/net/wireless/libertas_tf/libertas_tf.h index 8995cd7c29bf..4cc42dd5a005 100644 --- a/drivers/net/wireless/libertas_tf/libertas_tf.h +++ b/drivers/net/wireless/libertas_tf/libertas_tf.h | |||
@@ -463,7 +463,7 @@ int lbtf_set_radio_control(struct lbtf_private *priv); | |||
463 | int lbtf_update_hw_spec(struct lbtf_private *priv); | 463 | int lbtf_update_hw_spec(struct lbtf_private *priv); |
464 | int lbtf_cmd_set_mac_multicast_addr(struct lbtf_private *priv); | 464 | int lbtf_cmd_set_mac_multicast_addr(struct lbtf_private *priv); |
465 | void lbtf_set_mode(struct lbtf_private *priv, enum lbtf_mode mode); | 465 | void lbtf_set_mode(struct lbtf_private *priv, enum lbtf_mode mode); |
466 | void lbtf_set_bssid(struct lbtf_private *priv, bool activate, u8 *bssid); | 466 | void lbtf_set_bssid(struct lbtf_private *priv, bool activate, const u8 *bssid); |
467 | int lbtf_set_mac_address(struct lbtf_private *priv, uint8_t *mac_addr); | 467 | int lbtf_set_mac_address(struct lbtf_private *priv, uint8_t *mac_addr); |
468 | 468 | ||
469 | int lbtf_set_channel(struct lbtf_private *priv, u8 channel); | 469 | int lbtf_set_channel(struct lbtf_private *priv, u8 channel); |
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index 6b3bb0f661d5..9c2f5517af2a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c | |||
@@ -32,7 +32,7 @@ | |||
32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, | 32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, |
33 | struct rt2x00_intf *intf, | 33 | struct rt2x00_intf *intf, |
34 | enum nl80211_iftype type, | 34 | enum nl80211_iftype type, |
35 | u8 *mac, u8 *bssid) | 35 | const u8 *mac, const u8 *bssid) |
36 | { | 36 | { |
37 | struct rt2x00intf_conf conf; | 37 | struct rt2x00intf_conf conf; |
38 | unsigned int flags = 0; | 38 | unsigned int flags = 0; |
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index daf0def915dd..34efe4653549 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -76,7 +76,7 @@ void rt2x00lib_stop(struct rt2x00_dev *rt2x00dev); | |||
76 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, | 76 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, |
77 | struct rt2x00_intf *intf, | 77 | struct rt2x00_intf *intf, |
78 | enum nl80211_iftype type, | 78 | enum nl80211_iftype type, |
79 | u8 *mac, u8 *bssid); | 79 | const u8 *mac, const u8 *bssid); |
80 | void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, | 80 | void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, |
81 | struct rt2x00_intf *intf, | 81 | struct rt2x00_intf *intf, |
82 | struct ieee80211_bss_conf *conf); | 82 | struct ieee80211_bss_conf *conf); |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 9a5869e9ecfa..ef42559694f1 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -643,7 +643,7 @@ enum ieee80211_if_conf_change { | |||
643 | */ | 643 | */ |
644 | struct ieee80211_if_conf { | 644 | struct ieee80211_if_conf { |
645 | u32 changed; | 645 | u32 changed; |
646 | u8 *bssid; | 646 | const u8 *bssid; |
647 | }; | 647 | }; |
648 | 648 | ||
649 | /** | 649 | /** |
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index c78304db475e..6f0fe3564ca4 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -176,7 +176,7 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed) | |||
176 | else if (sdata->vif.type == NL80211_IFTYPE_AP) | 176 | else if (sdata->vif.type == NL80211_IFTYPE_AP) |
177 | conf.bssid = sdata->dev->dev_addr; | 177 | conf.bssid = sdata->dev->dev_addr; |
178 | else if (ieee80211_vif_is_mesh(&sdata->vif)) { | 178 | else if (ieee80211_vif_is_mesh(&sdata->vif)) { |
179 | u8 zero[ETH_ALEN] = { 0 }; | 179 | static const u8 zero[ETH_ALEN] = { 0 }; |
180 | conf.bssid = zero; | 180 | conf.bssid = zero; |
181 | } else { | 181 | } else { |
182 | WARN_ON(1); | 182 | WARN_ON(1); |