mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
Staging: at76_usb: fix build breakage
The previous patch broke the at76_usb driver due to some other wireless core api changes. This patch fixes the driver to build properly again. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
02227c2839
commit
f7b31e015a
@ -2057,9 +2057,10 @@ static int at76_hw_scan(struct ieee80211_hw *hw, u8 *ssid, size_t len)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int at76_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf)
|
static int at76_config(struct ieee80211_hw *hw, u32 changed)
|
||||||
{
|
{
|
||||||
struct at76_priv *priv = hw->priv;
|
struct at76_priv *priv = hw->priv;
|
||||||
|
struct ieee80211_conf *conf = &hw->conf;
|
||||||
|
|
||||||
at76_dbg(DBG_MAC80211, "%s(): channel %d radio %d",
|
at76_dbg(DBG_MAC80211, "%s(): channel %d radio %d",
|
||||||
__func__, conf->channel->hw_value, conf->radio_enabled);
|
__func__, conf->channel->hw_value, conf->radio_enabled);
|
||||||
@ -2089,15 +2090,13 @@ static int at76_config_interface(struct ieee80211_hw *hw,
|
|||||||
{
|
{
|
||||||
struct at76_priv *priv = hw->priv;
|
struct at76_priv *priv = hw->priv;
|
||||||
|
|
||||||
at76_dbg(DBG_MAC80211, "%s(): ssid_len=%zd", __func__, conf->ssid_len);
|
|
||||||
at76_dbg_dump(DBG_MAC80211, conf->ssid, conf->ssid_len, "ssid:");
|
|
||||||
at76_dbg_dump(DBG_MAC80211, conf->bssid, ETH_ALEN, "bssid:");
|
at76_dbg_dump(DBG_MAC80211, conf->bssid, ETH_ALEN, "bssid:");
|
||||||
|
|
||||||
mutex_lock(&priv->mtx);
|
mutex_lock(&priv->mtx);
|
||||||
|
|
||||||
memcpy(priv->bssid, conf->bssid, ETH_ALEN);
|
memcpy(priv->bssid, conf->bssid, ETH_ALEN);
|
||||||
memcpy(priv->essid, conf->ssid, conf->ssid_len);
|
// memcpy(priv->essid, conf->ssid, conf->ssid_len);
|
||||||
priv->essid_size = conf->ssid_len;
|
// priv->essid_size = conf->ssid_len;
|
||||||
|
|
||||||
if (is_valid_ether_addr(priv->bssid)) {
|
if (is_valid_ether_addr(priv->bssid)) {
|
||||||
/* mac80211 is joining a bss */
|
/* mac80211 is joining a bss */
|
||||||
|
Loading…
Reference in New Issue
Block a user