SOURCES: iwlwifi-fix_rate_scale_issue.patch (NEW) - official fix f...

blues blues at pld-linux.org
Sat Oct 27 12:20:10 CEST 2007


Author: blues                        Date: Sat Oct 27 10:20:10 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- official fix for trash in syslog

---- Files affected:
SOURCES:
   iwlwifi-fix_rate_scale_issue.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/iwlwifi-fix_rate_scale_issue.patch
diff -u /dev/null SOURCES/iwlwifi-fix_rate_scale_issue.patch:1.1
--- /dev/null	Sat Oct 27 12:20:10 2007
+++ SOURCES/iwlwifi-fix_rate_scale_issue.patch	Sat Oct 27 12:20:05 2007
@@ -0,0 +1,61 @@
+This patch fix the problem
+1- Take care of iwl4965: Can not find a suitable rate issues.
+you get this messages because if you build without HT enables
+rs_switch_to_mimo and rs_switch_to_siso functions will always return 0 which
+main we can switch to HT rate causing the rate scale problem and the 
+error message.
+The fix will return -1 default
+
+2- the other fix was reported by Ben Cahil, using wrong value for 
+max_success_limit
+
+Signed-off-by: Mohamed Abbas <mabbas at linux.intel.com>
+diff --git a/origin/iwl-4965-rs.c b/origin/iwl-4965-rs.c
+index dfa2abe..7b5938c 100644
+--- a/origin/iwl-4965-rs.c
++++ b/origin/iwl-4965-rs.c
+@@ -787,7 +787,7 @@ static void rs_set_stay_in_table(u8 is_legacy,
+ 	if (is_legacy) {
+ 		lq_data->table_count_limit = IWL_LEGACY_TABLE_COUNT;
+ 		lq_data->max_failure_limit = IWL_LEGACY_FAILURE_LIMIT;
+-		lq_data->max_success_limit = IWL_LEGACY_TABLE_COUNT;
++		lq_data->max_success_limit = IWL_LEGACY_SUCCESS_LIMIT;
+ 	} else {
+ 		lq_data->table_count_limit = IWL_NONE_LEGACY_TABLE_COUNT;
+ 		lq_data->max_failure_limit = IWL_NONE_LEGACY_FAILURE_LIMIT;
+@@ -942,9 +942,10 @@ static int rs_switch_to_mimo(struct iwl_priv *priv,
+ 
+ 	IWL_DEBUG_HT("LQ: Switch to new mcs %X index is green %X\n",
+ 		     tbl->current_rate.rate_n_flags, is_green);
+-
+-#endif				/*CONFIG_IWLWIFI_HT */
+ 	return 0;
++#else
++	return -1;
++#endif				/*CONFIG_IWLWIFI_HT */
+ }
+ 
+ static int rs_switch_to_siso(struct iwl_priv *priv,
+@@ -996,9 +997,11 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
+ 	rs_mcs_from_tbl(&tbl->current_rate, tbl, rate, is_green);
+ 	IWL_DEBUG_HT("LQ: Switch to new mcs %X index is green %X\n",
+ 		     tbl->current_rate.rate_n_flags, is_green);
++	return 0;
++#else
++	return -1;
+ 
+ #endif				/*CONFIG_IWLWIFI_HT */
+-	return 0;
+ }
+ 
+ static int rs_move_legacy_other(struct iwl_priv *priv,
+@@ -1287,7 +1290,7 @@ static void rs_stay_in_table(struct iwl_rate_scale_priv *lq_data)
+ 			lq_data->total_failed = 0;
+ 			lq_data->total_success = 0;
+ 			lq_data->flush_timer = 0;
+-		} else if (lq_data->table_count > 0) {
++		} else {
+ 			lq_data->table_count++;
+ 			if (lq_data->table_count >=
+ 			    lq_data->table_count_limit) {
+
================================================================


More information about the pld-cvs-commit mailing list