driver: Make DFS domain information available to core
Current DFS domain information of the driver can be used in ap/dfs to comply with DFS domain specific requirements like uniform spreading for ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
This commit is contained in:
parent
9cd52ac356
commit
aa56e36d66
10 changed files with 47 additions and 12 deletions
|
@ -275,11 +275,12 @@ static inline int wpa_drv_mlme_setprotection(struct wpa_supplicant *wpa_s,
|
|||
|
||||
static inline struct hostapd_hw_modes *
|
||||
wpa_drv_get_hw_feature_data(struct wpa_supplicant *wpa_s, u16 *num_modes,
|
||||
u16 *flags)
|
||||
u16 *flags, u8 *dfs_domain)
|
||||
{
|
||||
if (wpa_s->driver->get_hw_feature_data)
|
||||
return wpa_s->driver->get_hw_feature_data(wpa_s->drv_priv,
|
||||
num_modes, flags);
|
||||
num_modes, flags,
|
||||
dfs_domain);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -3428,6 +3428,7 @@ static void wpa_supplicant_update_channel_list(
|
|||
struct wpa_supplicant *wpa_s, struct channel_list_changed *info)
|
||||
{
|
||||
struct wpa_supplicant *ifs;
|
||||
u8 dfs_domain;
|
||||
|
||||
/*
|
||||
* To allow backwards compatibility with higher level layers that
|
||||
|
@ -3452,7 +3453,7 @@ static void wpa_supplicant_update_channel_list(
|
|||
ifs->ifname);
|
||||
free_hw_features(ifs);
|
||||
ifs->hw.modes = wpa_drv_get_hw_feature_data(
|
||||
ifs, &ifs->hw.num_modes, &ifs->hw.flags);
|
||||
ifs, &ifs->hw.num_modes, &ifs->hw.flags, &dfs_domain);
|
||||
|
||||
/* Restart PNO/sched_scan with updated channel list */
|
||||
if (ifs->pno) {
|
||||
|
|
|
@ -4939,6 +4939,7 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s,
|
|||
{
|
||||
struct wpa_driver_capa capa;
|
||||
int capa_res;
|
||||
u8 dfs_domain;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "Initializing interface '%s' conf '%s' driver "
|
||||
"'%s' ctrl_interface '%s' bridge '%s'", iface->ifname,
|
||||
|
@ -5066,7 +5067,8 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s,
|
|||
|
||||
wpa_s->hw.modes = wpa_drv_get_hw_feature_data(wpa_s,
|
||||
&wpa_s->hw.num_modes,
|
||||
&wpa_s->hw.flags);
|
||||
&wpa_s->hw.flags,
|
||||
&dfs_domain);
|
||||
if (wpa_s->hw.modes) {
|
||||
u16 i;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue