ipw2100: Fix command list for debugging
PATCH 1/1 ipw2100: Fix command list for debugging
A missing comma in the array causes an off-by-one for later commands.
---
Note: I don't have the documentation and I don't have the hardware, so an expert should double-check this one.
drivers/net/wireless/ipw2x00/ipw2100.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ipw2x00/ipw2100.c +2 -1
@@ -287,7 +287,8 @@ static const char *command_types[] = {"unused" ,/* HOST_INTERRUPT_COALESCING */ "undefined" ,"CARD_DISABLE_PHY_OFF" , -"MSDU_TX_RATES" "undefined" , +"MSDU_TX_RATES" , +"undefined" ,"undefined" ,"SET_STATION_STAT_BITS" , "CLEAR_STATIONS_STAT_BITS",
Signature · 1 line
Jean Delvare
Quoted 14 lines · Jean Delvare
A missing comma in the array causes an off-by-one for later commands.
Signed-off-by Jean Delvare <[email protected]>Cc "John W. Linville" <[email protected]>---
Note: I don't have the documentation and I don't have the hardware, so an expert should double-check this one.drivers/net/wireless/ipw2x00/ipw2100.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ipw2x00/ipw2100.c static const char *command_types[] = { · line 294
Quoted 9 lines
drivers/net/wireless/ipw2x00/ipw2100.c +2
-1@@ -287,7 +287,8 @@ static const char *command_types[] = {"unused" ,/* HOST_INTERRUPT_COALESCING */ "undefined" ,"CARD_DISABLE_PHY_OFF" , -"MSDU_TX_RATES" "undefined" , +"MSDU_TX_RATES" , +"undefined" ,"undefined" ,"SET_STATION_STAT_BITS" , "CLEAR_STATIONS_STAT_BITS",
This code dates from 2005:
commit ee8e365aa6395e721399127ccf3d28d269136f0e
Author: James Ketrenos <[email protected]> Date: Wed Sep 14 09:47:29 2005 -0500
Ran scripts/Lindent on drivers/net/wireless/ipw2{1,2}00.{c,h}
No other changes.
Prior to that, those two strings were on two different lines but with no comma betwen them -- so effectively the same as now. Changing it as you suggest would change the offsets in the array of the following string pointers, which I suspect will break the debugging code that uses it.
I would rather not take this change. OTOH, perhaps you could submit a patch that simply remove the second quoted string from the single line?
John
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you [email protected] might be all we have. Be ready.
Hi John,
Quoted 28 lines · John W. Linville
Quoted 14 lines · Jean Delvare
A missing comma in the array causes an off-by-one for later commands.
Signed-off-by Jean Delvare <[email protected]>Cc "John W. Linville" <[email protected]>---
Note: I don't have the documentation and I don't have the hardware, so an expert should double-check this one.drivers/net/wireless/ipw2x00/ipw2100.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/wireless/ipw2x00/ipw2100.c static const char *command_types[] = { · line 294
Quoted 9 lines
drivers/net/wireless/ipw2x00/ipw2100.c +2
-1@@ -287,7 +287,8 @@ static const char *command_types[] = {"unused" ,/* HOST_INTERRUPT_COALESCING */ "undefined" ,"CARD_DISABLE_PHY_OFF" , -"MSDU_TX_RATES" "undefined" , +"MSDU_TX_RATES" , +"undefined" ,"undefined" ,"SET_STATION_STAT_BITS" , "CLEAR_STATIONS_STAT_BITS",This code dates from 2005:
commit
ee8e365aa6395e721399127ccf3d28d269136f0e
Quoted 9 lines
Author: James Ketrenos <[email protected]> Date: Wed Sep 14 09:47:29 2005 -0500Ran
scripts/Lindentondrivers/net/wireless/ipw2{1,2}00.{c,h}No other changes.
Signed-off-by James Ketrenos <[email protected]>
Yes, I found that commit too, and it explains why the two strings are on the same line. As a side note, I don't think Lindent should do this, but that's a different story.
Quoted 5 lines
Prior to that, those two strings were on two different lines but with no comma betwen them -- so effectively the same as now. Changing it as you suggest would change the offsets in the array of the following string pointers, which I suspect will break the debugging code that uses it.
My own suspicion was that the current code was broken and my patch would fix it. But a comparison with the defines in ipw2100.h suggests that I was wrong and your analysis is correct:
#define MSDU_TX_RATES 62
#define SET_STATION_STAT_BITS 64
So there should be a single "undefined" between both.
Quoted 2 lines
I would rather not take this change. OTOH, perhaps you could submit a patch that simply remove the second quoted string from the single line?
Yes, I'll do this, thanks.
Signature · 1 line
Jean Delvare