diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/ieee80211.c | 4 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 | ||||
-rw-r--r-- | net/mac80211/ieee80211_iface.c | 1 | ||||
-rw-r--r-- | net/mac80211/ieee80211_ioctl.c | 9 |
4 files changed, 0 insertions, 16 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 2501bff0d15e..210319f9ea2f 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -615,13 +615,9 @@ static int __ieee80211_if_config(struct net_device *dev, | |||
615 | conf.bssid = sdata->u.sta.bssid; | 615 | conf.bssid = sdata->u.sta.bssid; |
616 | conf.ssid = sdata->u.sta.ssid; | 616 | conf.ssid = sdata->u.sta.ssid; |
617 | conf.ssid_len = sdata->u.sta.ssid_len; | 617 | conf.ssid_len = sdata->u.sta.ssid_len; |
618 | conf.generic_elem = sdata->u.sta.extra_ie; | ||
619 | conf.generic_elem_len = sdata->u.sta.extra_ie_len; | ||
620 | } else if (sdata->type == IEEE80211_IF_TYPE_AP) { | 618 | } else if (sdata->type == IEEE80211_IF_TYPE_AP) { |
621 | conf.ssid = sdata->u.ap.ssid; | 619 | conf.ssid = sdata->u.ap.ssid; |
622 | conf.ssid_len = sdata->u.ap.ssid_len; | 620 | conf.ssid_len = sdata->u.ap.ssid_len; |
623 | conf.generic_elem = sdata->u.ap.generic_elem; | ||
624 | conf.generic_elem_len = sdata->u.ap.generic_elem_len; | ||
625 | conf.beacon = beacon; | 621 | conf.beacon = beacon; |
626 | conf.beacon_control = control; | 622 | conf.beacon_control = control; |
627 | } | 623 | } |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index d2f8c8e57ac4..0c9548a0a4ec 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -197,8 +197,6 @@ struct ieee80211_if_ap { | |||
197 | 197 | ||
198 | u8 ssid[IEEE80211_MAX_SSID_LEN]; | 198 | u8 ssid[IEEE80211_MAX_SSID_LEN]; |
199 | size_t ssid_len; | 199 | size_t ssid_len; |
200 | u8 *generic_elem; | ||
201 | size_t generic_elem_len; | ||
202 | 200 | ||
203 | /* yes, this looks ugly, but guarantees that we can later use | 201 | /* yes, this looks ugly, but guarantees that we can later use |
204 | * bitmap_empty :) | 202 | * bitmap_empty :) |
diff --git a/net/mac80211/ieee80211_iface.c b/net/mac80211/ieee80211_iface.c index 60cee6e602d2..08c1e188d4b8 100644 --- a/net/mac80211/ieee80211_iface.c +++ b/net/mac80211/ieee80211_iface.c | |||
@@ -269,7 +269,6 @@ void ieee80211_if_reinit(struct net_device *dev) | |||
269 | 269 | ||
270 | kfree(sdata->u.ap.beacon_head); | 270 | kfree(sdata->u.ap.beacon_head); |
271 | kfree(sdata->u.ap.beacon_tail); | 271 | kfree(sdata->u.ap.beacon_tail); |
272 | kfree(sdata->u.ap.generic_elem); | ||
273 | 272 | ||
274 | while ((skb = skb_dequeue(&sdata->u.ap.ps_bc_buf))) { | 273 | while ((skb = skb_dequeue(&sdata->u.ap.ps_bc_buf))) { |
275 | local->total_ps_buffered--; | 274 | local->total_ps_buffered--; |
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c index 3c324c3bcd9c..48e68434b38a 100644 --- a/net/mac80211/ieee80211_ioctl.c +++ b/net/mac80211/ieee80211_ioctl.c | |||
@@ -120,15 +120,6 @@ static int ieee80211_ioctl_siwgenie(struct net_device *dev, | |||
120 | return 0; | 120 | return 0; |
121 | } | 121 | } |
122 | 122 | ||
123 | if (sdata->type == IEEE80211_IF_TYPE_AP) { | ||
124 | kfree(sdata->u.ap.generic_elem); | ||
125 | sdata->u.ap.generic_elem = kmalloc(data->length, GFP_KERNEL); | ||
126 | if (!sdata->u.ap.generic_elem) | ||
127 | return -ENOMEM; | ||
128 | memcpy(sdata->u.ap.generic_elem, extra, data->length); | ||
129 | sdata->u.ap.generic_elem_len = data->length; | ||
130 | return ieee80211_if_config(dev); | ||
131 | } | ||
132 | return -EOPNOTSUPP; | 123 | return -EOPNOTSUPP; |
133 | } | 124 | } |
134 | 125 | ||