diff options
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/cfg80211.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/cfg80211.c b/drivers/net/wireless/iwmc3200wifi/cfg80211.c index a1d45cce0ebc..902e95f70f6e 100644 --- a/drivers/net/wireless/iwmc3200wifi/cfg80211.c +++ b/drivers/net/wireless/iwmc3200wifi/cfg80211.c | |||
@@ -264,7 +264,7 @@ static int iwm_cfg80211_get_station(struct wiphy *wiphy, | |||
264 | int iwm_cfg80211_inform_bss(struct iwm_priv *iwm) | 264 | int iwm_cfg80211_inform_bss(struct iwm_priv *iwm) |
265 | { | 265 | { |
266 | struct wiphy *wiphy = iwm_to_wiphy(iwm); | 266 | struct wiphy *wiphy = iwm_to_wiphy(iwm); |
267 | struct iwm_bss_info *bss, *next; | 267 | struct iwm_bss_info *bss; |
268 | struct iwm_umac_notif_bss_info *umac_bss; | 268 | struct iwm_umac_notif_bss_info *umac_bss; |
269 | struct ieee80211_mgmt *mgmt; | 269 | struct ieee80211_mgmt *mgmt; |
270 | struct ieee80211_channel *channel; | 270 | struct ieee80211_channel *channel; |
@@ -272,7 +272,7 @@ int iwm_cfg80211_inform_bss(struct iwm_priv *iwm) | |||
272 | s32 signal; | 272 | s32 signal; |
273 | int freq; | 273 | int freq; |
274 | 274 | ||
275 | list_for_each_entry_safe(bss, next, &iwm->bss_list, node) { | 275 | list_for_each_entry(bss, &iwm->bss_list, node) { |
276 | umac_bss = bss->bss; | 276 | umac_bss = bss->bss; |
277 | mgmt = (struct ieee80211_mgmt *)(umac_bss->frame_buf); | 277 | mgmt = (struct ieee80211_mgmt *)(umac_bss->frame_buf); |
278 | 278 | ||
@@ -726,23 +726,26 @@ static int iwm_cfg80211_set_power_mgmt(struct wiphy *wiphy, | |||
726 | CFG_POWER_INDEX, iwm->conf.power_index); | 726 | CFG_POWER_INDEX, iwm->conf.power_index); |
727 | } | 727 | } |
728 | 728 | ||
729 | int iwm_cfg80211_set_pmksa(struct wiphy *wiphy, struct net_device *netdev, | 729 | static int iwm_cfg80211_set_pmksa(struct wiphy *wiphy, |
730 | struct cfg80211_pmksa *pmksa) | 730 | struct net_device *netdev, |
731 | struct cfg80211_pmksa *pmksa) | ||
731 | { | 732 | { |
732 | struct iwm_priv *iwm = wiphy_to_iwm(wiphy); | 733 | struct iwm_priv *iwm = wiphy_to_iwm(wiphy); |
733 | 734 | ||
734 | return iwm_send_pmkid_update(iwm, pmksa, IWM_CMD_PMKID_ADD); | 735 | return iwm_send_pmkid_update(iwm, pmksa, IWM_CMD_PMKID_ADD); |
735 | } | 736 | } |
736 | 737 | ||
737 | int iwm_cfg80211_del_pmksa(struct wiphy *wiphy, struct net_device *netdev, | 738 | static int iwm_cfg80211_del_pmksa(struct wiphy *wiphy, |
738 | struct cfg80211_pmksa *pmksa) | 739 | struct net_device *netdev, |
740 | struct cfg80211_pmksa *pmksa) | ||
739 | { | 741 | { |
740 | struct iwm_priv *iwm = wiphy_to_iwm(wiphy); | 742 | struct iwm_priv *iwm = wiphy_to_iwm(wiphy); |
741 | 743 | ||
742 | return iwm_send_pmkid_update(iwm, pmksa, IWM_CMD_PMKID_DEL); | 744 | return iwm_send_pmkid_update(iwm, pmksa, IWM_CMD_PMKID_DEL); |
743 | } | 745 | } |
744 | 746 | ||
745 | int iwm_cfg80211_flush_pmksa(struct wiphy *wiphy, struct net_device *netdev) | 747 | static int iwm_cfg80211_flush_pmksa(struct wiphy *wiphy, |
748 | struct net_device *netdev) | ||
746 | { | 749 | { |
747 | struct iwm_priv *iwm = wiphy_to_iwm(wiphy); | 750 | struct iwm_priv *iwm = wiphy_to_iwm(wiphy); |
748 | struct cfg80211_pmksa pmksa; | 751 | struct cfg80211_pmksa pmksa; |