mac80211: remove struct ieee80211_if_init_conf
All its members (vif, mac_addr, type) are now available in the vif struct directly, so we can pass that instead of the conf struct. I generated this patch (except the mac80211 and header file changes) with this semantic patch: @@ identifier conf, fn, hw; type tp; @@ tp fn(struct ieee80211_hw *hw, -struct ieee80211_if_init_conf *conf) +struct ieee80211_vif *vif) { <... ( -conf->type +vif->type | -conf->mac_addr +vif->addr | -conf->vif +vif ) ...> } Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
98b6218388
commit
1ed32e4fc8
@@ -36,18 +36,18 @@ static inline void drv_stop(struct ieee80211_local *local)
|
||||
}
|
||||
|
||||
static inline int drv_add_interface(struct ieee80211_local *local,
|
||||
struct ieee80211_if_init_conf *conf)
|
||||
struct ieee80211_vif *vif)
|
||||
{
|
||||
int ret = local->ops->add_interface(&local->hw, conf);
|
||||
trace_drv_add_interface(local, vif_to_sdata(conf->vif), ret);
|
||||
int ret = local->ops->add_interface(&local->hw, vif);
|
||||
trace_drv_add_interface(local, vif_to_sdata(vif), ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline void drv_remove_interface(struct ieee80211_local *local,
|
||||
struct ieee80211_if_init_conf *conf)
|
||||
struct ieee80211_vif *vif)
|
||||
{
|
||||
local->ops->remove_interface(&local->hw, conf);
|
||||
trace_drv_remove_interface(local, vif_to_sdata(conf->vif));
|
||||
local->ops->remove_interface(&local->hw, vif);
|
||||
trace_drv_remove_interface(local, vif_to_sdata(vif));
|
||||
}
|
||||
|
||||
static inline int drv_config(struct ieee80211_local *local, u32 changed)
|
||||
|
Reference in New Issue
Block a user