Ticket #6706: 0002-Probe_Res_Retry_Limit.patch

File 0002-Probe_Res_Retry_Limit.patch, 3.2 kB (added by carrano, 7 years ago)

Kernel patch - Probe response retry limit

  • drivers/net/wireless/libertas/host.h

    From 5f58248c41bf2e8de38692e5faa461ab8b5a4bfd Mon Sep 17 00:00:00 2001
    From: root <root@localhost.localdomain>
    Date: Wed, 5 Mar 2008 16:22:14 +0530
    Subject: [PATCH] Probe_Res_Retry_Limit
    
    
    Signed-off-by: root <root@localhost.localdomain>
    ---
     drivers/net/wireless/libertas/host.h  |    1 +
     drivers/net/wireless/libertas/ioctl.c |    9 ++++++++-
     drivers/net/wireless/libertas/ioctl.h |    1 +
     drivers/net/wireless/libertas/wext.c  |    2 ++
     4 files changed, 12 insertions(+), 1 deletions(-)
    
    diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h
    index 1aa0407..0f77bd1 100644
    a b  
    258258        CMD_ACT_MESH_GET_ROUTE_EXP, 
    259259        CMD_ACT_MESH_SET_AUTOSTART_ENABLED, 
    260260        CMD_ACT_MESH_GET_AUTOSTART_ENABLED, 
     261        CMD_ACT_MESH_SET_PRB_RSP_RETRY_LIMIT = 17, 
    261262}; 
    262263 
    263264/** Card Event definition */ 
  • drivers/net/wireless/libertas/ioctl.c

    diff --git a/drivers/net/wireless/libertas/ioctl.c b/drivers/net/wireless/libertas/ioctl.c
    index 51b88d1..83cc454 100644
    a b  
    848848                /* Convert rate from Mbps -> firmware rate index */ 
    849849                if (subcmd == CMD_ACT_MESH_SET_BCAST_RATE) 
    850850                        parameter = lbs_data_rate_to_fw_index(parameter); 
    851  
     851                if (subcmd == CMD_ACT_MESH_SET_PRB_RSP_RETRY_LIMIT) { 
     852                        if (parameter > 15) 
     853                                return -EINVAL; 
     854                } 
    852855                if (parameter < 0) 
    853856                        return -EINVAL; 
    854857                mesh_access.data[0] = cpu_to_le32(parameter); 
     
    11381141                case LBS_SUBCMD_BT_SET_INVERT: 
    11391142                        ret = lbs_bt_set_invert_ioctl(priv, req); 
    11401143                        break; 
     1144                case LBS_SUBCMD_MESH_SET_PRB_RSP_RETRY_LIMIT: 
     1145                        ret = lbs_mesh_ioctl(priv, wrq, cmd, 
     1146                                        CMD_ACT_MESH_SET_PRB_RSP_RETRY_LIMIT); 
     1147                        break; 
    11411148                default: 
    11421149                        ret = -EOPNOTSUPP; 
    11431150                        break; 
  • drivers/net/wireless/libertas/ioctl.h

    diff --git a/drivers/net/wireless/libertas/ioctl.h b/drivers/net/wireless/libertas/ioctl.h
    index e4f835c..811ecf2 100644
    a b  
    2727#define LBS_SUBCMD_MESH_SET_BCAST_RATE          20 
    2828#define LBS_SUBCMD_MESH_SET_RREQ_DELAY          21 
    2929#define LBS_SUBCMD_MESH_SET_ROUTE_EXP           22 
     30#define LBS_SUBCMD_MESH_SET_PRB_RSP_RETRY_LIMIT 23 
    3031 
    3132#define LBS_SET128CHAR_GET128CHAR               (SIOCIWFIRSTPRIV + 25) 
    3233#define LBS_SUBCMD_BT_ADD                       18 
  • drivers/net/wireless/libertas/wext.c

    diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
    index 8031b5d..9b63d9e 100644
    a b  
    22322232            { LBS_SUBCMD_MESH_SET_BCAST_RATE, INT_PARAM, 0, "mesh_set_bcastr"}, 
    22332233            { LBS_SUBCMD_MESH_SET_RREQ_DELAY, INT_PARAM, 0, "set_rreq_delay"}, 
    22342234            { LBS_SUBCMD_MESH_SET_ROUTE_EXP, INT_PARAM, 0, "set_route_exp"}, 
     2235            { LBS_SUBCMD_MESH_SET_PRB_RSP_RETRY_LIMIT, INT_PARAM, 0, 
     2236                                                        "setprspretrylt"}, 
    22352237        { LBS_SET128CHAR_GET128CHAR, CHAR128_PARAM, CHAR128_PARAM, ""}, 
    22362238            { LBS_SUBCMD_BT_ADD, CHAR128_PARAM, CHAR128_PARAM, "bt_add"}, 
    22372239            { LBS_SUBCMD_BT_DEL, CHAR128_PARAM, CHAR128_PARAM, "bt_del"},