Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121761
b: refs/heads/master
c: b23f99b
h: refs/heads/master
i:
  121759: 3014c54
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Nov 10, 2008
1 parent d07596d commit 3cde4eb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71c11fb57b924c160297ccd9e1761db598d00ac2
refs/heads/master: b23f99bcfa12c7b452f7ad201ea5921534d4e9ff
23 changes: 0 additions & 23 deletions trunk/drivers/net/wireless/adm8211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1297,22 +1297,6 @@ static void adm8211_set_bssid(struct ieee80211_hw *dev, const u8 *bssid)
ADM8211_CSR_WRITE(ABDA1, reg);
}

static int adm8211_set_ssid(struct ieee80211_hw *dev, u8 *ssid, size_t ssid_len)
{
struct adm8211_priv *priv = dev->priv;
u8 buf[36];

if (ssid_len > 32)
return -EINVAL;

memset(buf, 0, sizeof(buf));
buf[0] = ssid_len;
memcpy(buf + 1, ssid, ssid_len);
adm8211_write_sram_bytes(dev, ADM8211_SRAM_SSID, buf, 33);
/* TODO: configure beacon for adhoc? */
return 0;
}

static int adm8211_config(struct ieee80211_hw *dev, u32 changed)
{
struct adm8211_priv *priv = dev->priv;
Expand All @@ -1338,13 +1322,6 @@ static int adm8211_config_interface(struct ieee80211_hw *dev,
memcpy(priv->bssid, conf->bssid, ETH_ALEN);
}

if (conf->ssid_len != priv->ssid_len ||
memcmp(conf->ssid, priv->ssid, conf->ssid_len)) {
adm8211_set_ssid(dev, conf->ssid, conf->ssid_len);
priv->ssid_len = conf->ssid_len;
memcpy(priv->ssid, conf->ssid, conf->ssid_len);
}

return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/net/wireless/adm8211.h
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,6 @@ struct adm8211_priv {

int channel;
u8 bssid[ETH_ALEN];
u8 ssid[32];
size_t ssid_len;

u8 soft_rx_crc;
u8 retry_limit;
Expand Down

0 comments on commit 3cde4eb

Please sign in to comment.