Commit 4d0d3022 authored by Pekka Enberg's avatar Pekka Enberg Committed by Greg Kroah-Hartman

Staging: w35und: Kill struct hwdata ->NullPacketCount

This patch kills the NullPacketCount member of struct hwdata. It's not used for
anything so it's safe to remove it.
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6112063d
...@@ -342,9 +342,6 @@ struct wb35_descriptor { /* Skip length = 8 DWORD */ ...@@ -342,9 +342,6 @@ struct wb35_descriptor { /* Skip length = 8 DWORD */
void *buffer_address[MAX_DESCRIPTOR_BUFFER_INDEX]; void *buffer_address[MAX_DESCRIPTOR_BUFFER_INDEX];
}; };
#define DEFAULT_NULL_PACKET_COUNT 180000 /* 180 seconds */
#define MAX_TXVGA_EEPROM 9 /* How many word(u16) of EEPROM will be used for TxVGA */ #define MAX_TXVGA_EEPROM 9 /* How many word(u16) of EEPROM will be used for TxVGA */
#define MAX_RF_PARAMETER 32 #define MAX_RF_PARAMETER 32
...@@ -517,9 +514,6 @@ struct hw_data { ...@@ -517,9 +514,6 @@ struct hw_data {
/* For error recover */ /* For error recover */
u32 HwStop; u32 HwStop;
/* For avoid AP disconnect */
u32 NullPacketCount;
}; };
#endif #endif
...@@ -611,15 +611,6 @@ static void hal_led_control(unsigned long data) ...@@ -611,15 +611,6 @@ static void hal_led_control(unsigned long data)
} }
break; break;
} }
/* Active send null packet to avoid AP disconnect */
if (pHwData->LED_LinkOn) {
pHwData->NullPacketCount += TimeInterval;
if (pHwData->NullPacketCount >=
DEFAULT_NULL_PACKET_COUNT) {
pHwData->NullPacketCount = 0;
}
}
} }
pHwData->time_count += TimeInterval; pHwData->time_count += TimeInterval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment