On Wed, 2008-10-29 at 00:24 +0800, Mirco Tischler wrote: > > I tested it quickly and not very thoroughly on the wpa-eap encrypted > network at > university and it showed the same behaviour: no connection without > CONFIG_WIRELESS_OLD_REGULATORY and no problems with it enabled. Interesting. The only difference between without and with CONFIG_WIRELESS_OLD_REGULATORY is the txpower is lower and you can only do passive scan. Can you try attached patch? Thanks, -yi
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 0953a9c..8123156 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c @@ -1523,6 +1523,7 @@ static int iwl4965_send_tx_power(struct iwl_priv *priv) * the stack trace to find out who is calling this during * a scan. */ IWL_WARNING("TX Power requested while scanning!\n"); + dump_stack(); return -EAGAIN; } diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 5dab72d..7ffa736 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -71,9 +71,7 @@ static const struct ieee80211_regdomain world_regdom = { .n_reg_rules = 1, .alpha2 = "00", .reg_rules = { - REG_RULE(2412-10, 2462+10, 40, 6, 20, - NL80211_RRF_PASSIVE_SCAN | - NL80211_RRF_NO_IBSS), + REG_RULE(2412-10, 2462+10, 40, 6, 27, 0), } };