mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-15 19:25:13 +00:00
cfg80211: store the ssid into wirless_dev in AP mode
Store the configured ssid in wdev->ssid when starting an AP Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
488dd7b53d
commit
06e191e22e
2 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev,
|
||||||
if (!err) {
|
if (!err) {
|
||||||
wdev->beacon_interval = 0;
|
wdev->beacon_interval = 0;
|
||||||
wdev->channel = NULL;
|
wdev->channel = NULL;
|
||||||
|
wdev->ssid_len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
|
|
||||||
|
|
@ -2649,6 +2649,8 @@ static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info)
|
||||||
wdev->preset_chantype = params.channel_type;
|
wdev->preset_chantype = params.channel_type;
|
||||||
wdev->beacon_interval = params.beacon_interval;
|
wdev->beacon_interval = params.beacon_interval;
|
||||||
wdev->channel = params.channel;
|
wdev->channel = params.channel;
|
||||||
|
wdev->ssid_len = params.ssid_len;
|
||||||
|
memcpy(wdev->ssid, params.ssid, wdev->ssid_len);
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue