This patch adds IBSS RSN support to the ath5k driver. It has not been merged into wireless-testing yet.
Signed-off-by: Antonio Quartulli <[email protected]> --- .../962-ath5k-claim-support-for-IBSS-RSN.patch | 33 ++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 package/mac80211/patches/962-ath5k-claim-support-for-IBSS-RSN.patch diff --git a/package/mac80211/patches/962-ath5k-claim-support-for-IBSS-RSN.patch b/package/mac80211/patches/962-ath5k-claim-support-for-IBSS-RSN.patch new file mode 100644 index 0000000..d5bb20c --- /dev/null +++ b/package/mac80211/patches/962-ath5k-claim-support-for-IBSS-RSN.patch @@ -0,0 +1,33 @@ +diff -urw compat-wireless-2011-12-01.patched//drivers/net/wireless/ath/ath5k/base.c compat-wireless-2011-12-01/drivers/net/wireless/ath/ath5k/base.c +--- compat-wireless-2011-12-01.patched//drivers/net/wireless/ath/ath5k/base.c 2012-01-12 15:27:21.899444874 +0100 ++++ compat-wireless-2011-12-01/drivers/net/wireless/ath/ath5k/base.c 2012-01-14 10:52:57.428258261 +0100 +@@ -2442,6 +2442,9 @@ + BIT(NL80211_IFTYPE_ADHOC) | + BIT(NL80211_IFTYPE_MESH_POINT); + ++ /* SW support for IBSS_RSN is provided by mac80211 */ ++ hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN; ++ + /* both antennas can be configured as RX or TX */ + hw->wiphy->available_antennas_tx = 0x3; + hw->wiphy->available_antennas_rx = 0x3; +diff -urw compat-wireless-2011-12-01.patched//drivers/net/wireless/ath/ath5k/mac80211-ops.c compat-wireless-2011-12-01/drivers/net/wireless/ath/ath5k/mac80211-ops.c +--- compat-wireless-2011-12-01.patched//drivers/net/wireless/ath/ath5k/mac80211-ops.c 2012-01-12 15:27:21.899444874 +0100 ++++ compat-wireless-2011-12-01/drivers/net/wireless/ath/ath5k/mac80211-ops.c 2012-01-14 10:52:57.429258261 +0100 +@@ -503,6 +503,14 @@ + if (ath5k_modparam_nohwcrypt) + return -EOPNOTSUPP; + ++ if (vif->type == NL80211_IFTYPE_ADHOC && ++ (key->cipher == WLAN_CIPHER_SUITE_TKIP || ++ key->cipher == WLAN_CIPHER_SUITE_CCMP) && ++ !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { ++ /* don't program group keys when using IBSS_RSN */ ++ return -EOPNOTSUPP; ++ } ++ + switch (key->cipher) { + case WLAN_CIPHER_SUITE_WEP40: + case WLAN_CIPHER_SUITE_WEP104: +Only in compat-wireless-2011-12-01: .prepared_8138592fb4dcb48e7ed77d643603aec0 +Only in compat-wireless-2011-12-01.patched/: .prepared_a3fe25071ff65c29fa443e006e97e463 -- 1.7.3.4 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
