|
@@ -644,6 +644,10 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
|
|
|
|
|
|
ieee80211_bss_info_change_notify(sdata, changed);
|
|
ieee80211_bss_info_change_notify(sdata, changed);
|
|
|
|
|
|
|
|
+ netif_carrier_on(dev);
|
|
|
|
+ list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list)
|
|
|
|
+ netif_carrier_on(vlan->dev);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -669,7 +673,7 @@ static int ieee80211_change_beacon(struct wiphy *wiphy, struct net_device *dev,
|
|
|
|
|
|
static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
|
static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
|
{
|
|
{
|
|
- struct ieee80211_sub_if_data *sdata;
|
|
|
|
|
|
+ struct ieee80211_sub_if_data *sdata, *vlan;
|
|
struct beacon_data *old;
|
|
struct beacon_data *old;
|
|
|
|
|
|
sdata = IEEE80211_DEV_TO_SUB_IF(dev);
|
|
sdata = IEEE80211_DEV_TO_SUB_IF(dev);
|
|
@@ -678,6 +682,10 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
|
if (!old)
|
|
if (!old)
|
|
return -ENOENT;
|
|
return -ENOENT;
|
|
|
|
|
|
|
|
+ list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list)
|
|
|
|
+ netif_carrier_off(vlan->dev);
|
|
|
|
+ netif_carrier_off(dev);
|
|
|
|
+
|
|
RCU_INIT_POINTER(sdata->u.ap.beacon, NULL);
|
|
RCU_INIT_POINTER(sdata->u.ap.beacon, NULL);
|
|
|
|
|
|
kfree_rcu(old, rcu_head);
|
|
kfree_rcu(old, rcu_head);
|