aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2012-06-13 15:35:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-13 15:35:35 -0400
commit211c17aaee644bb808fbdeef547ac99db92c01ed (patch)
tree2acf7fe32b30f537b06fed7e4c536ef0d11f2902 /drivers/net/wireless/ath/ath9k/main.c
parentec8eb9ae5819da011ac574aa290207a2a47cdbae (diff)
parentbcb7ad7bcbef030e6ba71ede1f9866368aca7c99 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts: drivers/net/wireless/ath/ath9k/main.c net/bluetooth/hci_event.c
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index a6f83b683db1..52561b341d68 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1036,15 +1036,6 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
1036 } 1036 }
1037 } 1037 }
1038 1038
1039 if ((ah->opmode == NL80211_IFTYPE_ADHOC) ||
1040 ((vif->type == NL80211_IFTYPE_ADHOC) &&
1041 sc->nvifs > 0)) {
1042 ath_err(common, "Cannot create ADHOC interface when other"
1043 " interfaces already exist.\n");
1044 ret = -EINVAL;
1045 goto out;
1046 }
1047
1048 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); 1039 ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type);
1049 1040
1050 sc->nvifs++; 1041 sc->nvifs++;
@@ -1069,15 +1060,6 @@ static int ath9k_change_interface(struct ieee80211_hw *hw,
1069 mutex_lock(&sc->mutex); 1060 mutex_lock(&sc->mutex);
1070 ath9k_ps_wakeup(sc); 1061 ath9k_ps_wakeup(sc);
1071 1062
1072 /* See if new interface type is valid. */
1073 if ((new_type == NL80211_IFTYPE_ADHOC) &&
1074 (sc->nvifs > 1)) {
1075 ath_err(common, "When using ADHOC, it must be the only"
1076 " interface.\n");
1077 ret = -EINVAL;
1078 goto out;
1079 }
1080
1081 if (ath9k_uses_beacons(new_type) && 1063 if (ath9k_uses_beacons(new_type) &&
1082 !ath9k_uses_beacons(vif->type)) { 1064 !ath9k_uses_beacons(vif->type)) {
1083 if (sc->nbcnvifs >= ATH_BCBUF) { 1065 if (sc->nbcnvifs >= ATH_BCBUF) {