Skip to content

Commit

Permalink
mac80211: support IBSS RSN with SW crypto
Browse files Browse the repository at this point in the history
When software crypto is used, mac80211 will
support IBSS RSN, it doesn't depend on the
driver in that case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Dec 13, 2010
1 parent 9abbfb2 commit 207aba6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,15 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,

wiphy->mgmt_stypes = ieee80211_default_mgmt_stypes;

wiphy->privid = mac80211_wiphy_privid;

wiphy->flags |= WIPHY_FLAG_NETNS_OK |
WIPHY_FLAG_4ADDR_AP |
WIPHY_FLAG_4ADDR_STATION |
WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS;
wiphy->privid = mac80211_wiphy_privid;

if (!ops->set_key)
wiphy->flags |= WIPHY_FLAG_IBSS_RSN;

wiphy->bss_priv_size = sizeof(struct ieee80211_bss);

Expand Down

0 comments on commit 207aba6

Please sign in to comment.