From: David Gibson Adds an ignore_disconnect module parameter. When enabled, the driver will continue attempting to send packets even when the firmware has told us we've lost our link to the AP. On some firmwares this substantially increases the usable range of the card (presumably because we have an interrmittent connection, but the firmware is able to queue the packets for us until we're connected again). On some other cards, it causes the firmware to fall in a screaming heap :( (hence, default off). Signed-off-by: David Gibson Signed-off-by: Andrew Morton --- 25-akpm/drivers/net/wireless/orinoco.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -puN drivers/net/wireless/orinoco.c~orinoco-merge-updates-part-the-fourth-ignore_disconnect-flag drivers/net/wireless/orinoco.c --- 25/drivers/net/wireless/orinoco.c~orinoco-merge-updates-part-the-fourth-ignore_disconnect-flag Wed Mar 30 15:29:28 2005 +++ 25-akpm/drivers/net/wireless/orinoco.c Wed Mar 30 15:29:28 2005 @@ -493,6 +493,9 @@ EXPORT_SYMBOL(orinoco_debug); static int suppress_linkstatus; /* = 0 */ module_param(suppress_linkstatus, bool, 0644); MODULE_PARM_DESC(suppress_linkstatus, "Don't log link status changes"); +static int ignore_disconnect; /* = 0 */ +module_param(ignore_disconnect, int, 0644); +MODULE_PARM_DESC(ignore_disconnect, "Don't report lost link to the network layer"); /********************************************************************/ /* Compile time configuration and compatibility stuff */ @@ -1321,7 +1324,7 @@ static void __orinoco_ev_info(struct net if (connected) netif_carrier_on(dev); - else + else if (!ignore_disconnect) netif_carrier_off(dev); if (newstatus != priv->last_linkstatus) _