Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60690a6a authored by Abhijeet Kolekar's avatar Abhijeet Kolekar Committed by John W. Linville
Browse files

iwlwifi: add config_ap lib op



add config_ap lib op to iwlwifi and iwl3945 in preparation
of future 3945 porting actions.

Signed-off-by: default avatarAbhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4808368d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2952,6 +2952,7 @@ static struct iwl_lib_ops iwl3945_lib = {
	.send_tx_power	= iwl3945_send_tx_power,
	.is_valid_rtc_data_addr = iwl3945_hw_valid_rtc_data_addr,
	.post_associate = iwl3945_post_associate,
	.config_ap = iwl3945_config_ap,
};

static struct iwl_station_mgmt_ops iwl3945_station_mgmt = {
+2 −0
Original line number Diff line number Diff line
@@ -278,6 +278,8 @@ extern void iwl3945_hw_rx_statistics(struct iwl_priv *priv,
extern void iwl3945_disable_events(struct iwl_priv *priv);
extern int iwl4965_get_temperature(const struct iwl_priv *priv);
extern void iwl3945_post_associate(struct iwl_priv *priv);
extern void iwl3945_config_ap(struct iwl_priv *priv);

/**
 * iwl3945_hw_find_station - Find station id for a given BSSID
 * @bssid: MAC address of station ID to find
+1 −0
Original line number Diff line number Diff line
@@ -2333,6 +2333,7 @@ static struct iwl_lib_ops iwl4965_lib = {
	.update_chain_flags = iwl_update_chain_flags,
	.temperature = iwl4965_temperature_calib,
	.post_associate = iwl_post_associate,
	.config_ap = iwl_config_ap,
};

static struct iwl_ops iwl4965_ops = {
+1 −0
Original line number Diff line number Diff line
@@ -1537,6 +1537,7 @@ struct iwl_lib_ops iwl5000_lib = {
		.query_addr = iwl5000_eeprom_query_addr,
	},
	.post_associate = iwl_post_associate,
	.config_ap = iwl_config_ap,
};

struct iwl_ops iwl5000_ops = {
+2 −2
Original line number Diff line number Diff line
@@ -2036,7 +2036,7 @@ static int iwl_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
	return NETDEV_TX_OK;
}

static void iwl_config_ap(struct iwl_priv *priv)
void iwl_config_ap(struct iwl_priv *priv)
{
	int ret = 0;
	unsigned long flags;
@@ -2178,7 +2178,7 @@ static int iwl_mac_config_interface(struct ieee80211_hw *hw,
		memcpy(priv->bssid, conf->bssid, ETH_ALEN);

		if (priv->iw_mode == NL80211_IFTYPE_AP)
			iwl_config_ap(priv);
			iwlcore_config_ap(priv);
		else {
			rc = iwlcore_commit_rxon(priv);
			if ((priv->iw_mode == NL80211_IFTYPE_STATION) && rc)
Loading