Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259542
b: refs/heads/master
c: 292cb18
h: refs/heads/master
v: v3
  • Loading branch information
Jouni Malinen authored and Greg Kroah-Hartman committed Jun 28, 2011
1 parent 1567858 commit d4155ea
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63d8916034ef2f577a9662f2a39e2667be75ed37
refs/heads/master: 292cb18a802c21434206b578d12b05793950cad9
25 changes: 25 additions & 0 deletions trunk/drivers/staging/ath6kl/os/linux/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,28 @@ static int ar6k_get_station(struct wiphy *wiphy, struct net_device *dev,
return 0;
}

static int ar6k_set_pmksa(struct wiphy *wiphy, struct net_device *netdev,
struct cfg80211_pmksa *pmksa)
{
struct ar6_softc *ar = ar6k_priv(netdev);
return wmi_setPmkid_cmd(ar->arWmi, pmksa->bssid, pmksa->pmkid, true);
}

static int ar6k_del_pmksa(struct wiphy *wiphy, struct net_device *netdev,
struct cfg80211_pmksa *pmksa)
{
struct ar6_softc *ar = ar6k_priv(netdev);
return wmi_setPmkid_cmd(ar->arWmi, pmksa->bssid, pmksa->pmkid, false);
}

static int ar6k_flush_pmksa(struct wiphy *wiphy, struct net_device *netdev)
{
struct ar6_softc *ar = ar6k_priv(netdev);
if (ar->arConnected)
return wmi_setPmkid_cmd(ar->arWmi, ar->arBssid, NULL, false);
return 0;
}

static struct
cfg80211_ops ar6k_cfg80211_ops = {
.change_virtual_intf = ar6k_cfg80211_change_iface,
Expand All @@ -1690,6 +1712,9 @@ cfg80211_ops ar6k_cfg80211_ops = {
.join_ibss = ar6k_cfg80211_join_ibss,
.leave_ibss = ar6k_cfg80211_leave_ibss,
.get_station = ar6k_get_station,
.set_pmksa = ar6k_set_pmksa,
.del_pmksa = ar6k_del_pmksa,
.flush_pmksa = ar6k_flush_pmksa,
CFG80211_TESTMODE_CMD(ar6k_testmode_cmd)
};

Expand Down

0 comments on commit d4155ea

Please sign in to comment.