提交 40667f32 编写于 作者: G Greg Kroah-Hartman

Staging: agnx: fix build errors due to ssid removal

The wireless core has removed the ssid variables, so also remove
them from the agnx driver so that it builds properly.

Cc: Li YanBo <dreamfly281@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0f22aab8
...@@ -115,8 +115,6 @@ struct agnx_priv { ...@@ -115,8 +115,6 @@ struct agnx_priv {
int mode; int mode;
int channel; int channel;
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
u8 ssid[32];
size_t ssid_len;
u8 mac_addr[ETH_ALEN]; u8 mac_addr[ETH_ALEN];
u8 revid; u8 revid;
......
...@@ -324,12 +324,6 @@ static int agnx_config_interface(struct ieee80211_hw *dev, ...@@ -324,12 +324,6 @@ static int agnx_config_interface(struct ieee80211_hw *dev,
sta_power_init(priv, BSSID_STAID); sta_power_init(priv, BSSID_STAID);
agnx_write32(ctl, AGNX_BM_MTSM, 0xff & ~0x1); agnx_write32(ctl, AGNX_BM_MTSM, 0xff & ~0x1);
} }
if (conf->ssid_len != priv->ssid_len ||
memcmp(conf->ssid, priv->ssid, conf->ssid_len)) {
agnx_set_ssid(priv, conf->ssid, conf->ssid_len);
priv->ssid_len = conf->ssid_len;
memcpy(priv->ssid, conf->ssid, conf->ssid_len);
}
spin_unlock(&priv->lock); spin_unlock(&priv->lock);
return 0; return 0;
} /* agnx_config_interface */ } /* agnx_config_interface */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册