Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 731a455c authored by Serhij Kyryljan's avatar Serhij Kyryljan Committed by Razziell
Browse files

prima: LA.UM.6.6.r1-08300-89xx.0

parent 76392f04
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -23,9 +23,13 @@ LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_SUPPORTS_WEARABLES),true)
ifneq ($(findstring device,$(LOCAL_PATH)),)
    WLAN_DLKM := 1
else
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
    WLAN_DLKM := 1
else
    WLAN_DLKM := 0
endif # findstring device
endif
else
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
    WLAN_DLKM := 1
+2 −2
Original line number Diff line number Diff line
@@ -3448,7 +3448,7 @@ static wpt_status dxeTXPushFrame

      if(wpalIsArpPkt(palPacket))
      {
         HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_ERROR,
         HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_INFO_HIGH,
                  "%s :ARP packet", __func__);
      }

@@ -3705,7 +3705,7 @@ static wpt_status dxeTXCompFrame

         if(wpalIsArpPkt(currentCtrlBlk->xfrFrame))
         {
             HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_ERROR,
             HDXE_MSG(eWLAN_MODULE_DAL_DATA, eWLAN_PAL_TRACE_LEVEL_INFO_HIGH,
                      "%s :ARP packet DMA-ed ", __func__);
             wpalUpdateTXArpFWdeliveredStats();
         }
+32 −0
Original line number Diff line number Diff line
@@ -1190,6 +1190,11 @@ typedef enum
#define CFG_REORDER_TIME_VO_MAX                            1000
#define CFG_REORDER_TIME_VO_DEFAULT                        40

#define CFG_ENABLE_PN_REPLAY_NAME                          "PNreplayCheck"
#define CFG_ENABLE_PN_REPLAY_MIN                           0
#define CFG_ENABLE_PN_REPLAY_MAX                           1
#define CFG_ENABLE_PN_REPLAY_DEFAULT                       0

#if defined WLAN_FEATURE_VOWIFI
#define CFG_RRM_ENABLE_NAME                              "gRrmEnable"
#define CFG_RRM_ENABLE_MIN                               (0)
@@ -1743,6 +1748,26 @@ typedef enum
#define CFG_ENABLE_TCP_DELACK_MAX            (1)
#define CFG_ENABLE_TCP_DELACK_DEFAULT        (1)

#define CFG_BTC_2M_DYN_LONG_WLAN_LEN_NAME      "gBTC2MDynLongWLAN"
#define CFG_BTC_2M_DYN_LONG_WLAN_LEN_MIN       (15000)
#define CFG_BTC_2M_DYN_LONG_WLAN_LEN_MAX       (55000)
#define CFG_BTC_2M_DYN_LONG_WLAN_LEN_DEFAULT   (35000)

#define CFG_BTC_2M_DYN_LONG_BT_LEN_NAME        "gBTC2MDynLongBT"
#define CFG_BTC_2M_DYN_LONG_BT_LEN_MIN         (15000)
#define CFG_BTC_2M_DYN_LONG_BT_LEN_MAX         (25000)
#define CFG_BTC_2M_DYN_LONG_BT_LEN_DEFAULT     (25000)

#define CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_NAME        "gBTC2MDynLongBTExt"
#define CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_MIN         (5000)
#define CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_MAX         (15000)
#define CFG_BTC_2M_DYN_LONG_BT_EXT_LEN_DEFAULT     (15000)

#define CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_NAME        "gBTC2MDynLongNumBTExt"
#define CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_MIN          (5)
#define CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_MAX          (15)
#define CFG_BTC_2M_DYN_LONG_NUM_BT_EXT_DEFAULT      (15)

#ifdef SAP_AUTH_OFFLOAD
/* Enable/Disable SAP Authentication offload
 * Default: enable
@@ -3178,6 +3203,8 @@ This feature requires the dependent cfg.ini "gRoamPrefer5GHz" set to 1 */
#define CFG_ENABLE_POWERSAVE_OFFLOAD_MAX        (2)
#define CFG_ENABLE_POWERSAVE_OFFLOAD_DEFAULT    (1)



/*--------------------------------------------------------------------------- 
  Type declarations
  -------------------------------------------------------------------------*/ 
@@ -3456,6 +3483,7 @@ typedef struct
   v_U16_t                      BeReorderAgingTime;
   v_U16_t                      ViReorderAgingTime;
   v_U16_t                      VoReorderAgingTime;
   v_BOOL_t                     enablePNReplay;

   /* Wowl pattern */
   char                        wowlPattern[1024];         
@@ -3787,6 +3815,10 @@ typedef struct
   /* control marking indoor channel passive to disable */
   bool                        disable_indoor_channel;
   uint32_t                    enable_power_save_offload;
   uint32_t                    btc_dyn_wlan_len;
   uint32_t                    btc_dyn_bt_len;
   uint32_t                    btc_dyn_bt_ext_len;
   uint32_t                    btc_dyn_num_bt_ext;

} hdd_config_t;

+9 −0
Original line number Diff line number Diff line
@@ -1655,6 +1655,15 @@ extern void wlan_hdd_cfg80211_update_replayCounterCallback(void *callbackContext
void* wlan_hdd_change_country_code_cb(void *pAdapter);
void hdd_select_cbmode( hdd_adapter_t *pAdapter,v_U8_t operationChannel);

/*
 * wlan_hdd_restore_channels() Restore the channels which were cached
 * and disabled in __wlan_hdd_disable_channels api.
 * @hdd_ctx: Pointer to the HDD context
 *
 * @Return: 0 on success, Error code on failure
 */
int wlan_hdd_restore_channels(hdd_context_t *pHddCtx);

/*
 * hdd_update_indoor_channel() - enable/disable indoor channel
 * @hdd_ctx: hdd context
+48 −3
Original line number Diff line number Diff line
@@ -74,6 +74,10 @@
/*--------------------------------------------------------------------------- 
  Preprocessor definitions and constants
  -------------------------------------------------------------------------*/

/* SAP channel change wait time in ms */
#define HDD_SAP_CHAN_CNG_WAIT_TIME 1500

/** Number of attempts to detect/remove card */
#define LIBRA_CARD_INSERT_DETECT_MAX_COUNT      5
#define LIBRA_CARD_REMOVE_DETECT_MAX_COUNT      5
@@ -343,7 +347,6 @@ extern spinlock_t hdd_context_lock;
#define STATS_CONTEXT_MAGIC 0x53544154   //STAT
#define RSSI_CONTEXT_MAGIC  0x52535349   //RSSI
#define POWER_CONTEXT_MAGIC 0x504F5752   //POWR
#define SNR_CONTEXT_MAGIC   0x534E5200   //SNR
#define BCN_MISS_RATE_CONTEXT_MAGIC 0x513F5753
#define FW_STATS_CONTEXT_MAGIC  0x5022474E //FW STATS
#define GET_FRAME_LOG_MAGIC   0x464c4f47   //FLOG
@@ -1406,8 +1409,7 @@ struct hdd_adapter_s
#define WLAN_HDD_GET_CFG_STATE_PTR(pAdapter)  (&(pAdapter)->cfg80211State)
#ifdef FEATURE_WLAN_TDLS
#define WLAN_HDD_IS_TDLS_SUPPORTED_ADAPTER(pAdapter) \
        (((WLAN_HDD_INFRA_STATION != pAdapter->device_mode) && \
        (WLAN_HDD_P2P_CLIENT != pAdapter->device_mode)) ? 0 : 1)
        ((WLAN_HDD_INFRA_STATION == pAdapter->device_mode) ? 1 : 0)
#define WLAN_HDD_GET_TDLS_CTX_PTR(pAdapter) \
        ((WLAN_HDD_IS_TDLS_SUPPORTED_ADAPTER(pAdapter)) ? \
        (tdlsCtx_t*)(pAdapter)->sessionCtx.station.pHddTdlsCtx : NULL)
@@ -1558,6 +1560,17 @@ struct hdd_offloaded_packets_ctx

/** Adapter stucture definition */

struct hdd_cache_channel_info {
	int channel_num;
	int reg_status;
	int wiphy_status;
};

struct hdd_cache_channels {
	int num_channels;
	struct hdd_cache_channel_info *channel_info;
};

struct hdd_context_s
{
   /** Global VOS context  */
@@ -1844,6 +1857,9 @@ struct hdd_context_s
    v_BOOL_t roaming_ini_original;

    uint32_t track_arp_ip;

    struct hdd_cache_channels *orginal_channels;
    struct mutex cache_channel_lock;
};

typedef enum  {
@@ -2303,6 +2319,14 @@ void hdd_restore_roaming(hdd_context_t *hdd_ctx);

int wlan_hdd_check_and_stop_mon(hdd_adapter_t *sta_adapter, bool wait);

/**
 * hdd_wait_for_ecsa_complete() - wait if ecsa is in progress
 * @hdd_ctx: hdd context
 *
 * Return: int.
 */
int hdd_wait_for_ecsa_complete(hdd_context_t *hdd_ctx);

/**
 * hdd_is_sta_sap_scc_allowed_on_dfs_chan() - check if sta+sap scc allowed on
 * dfs chan
@@ -2328,4 +2352,25 @@ hdd_wlan_nla_put_u64(struct sk_buff *skb, int attrtype, u64 value)
}
#endif

/*
 * hdd_parse_disable_chn_cmd() - Parse the channel list received
 * in command.
 * @adapter: pointer to hdd adapter
 *
 * @return: 0 on success, Error code on failure
 */
int hdd_parse_disable_chan_cmd(hdd_adapter_t *adapter, tANI_U8 *ptr);

/*
 * hdd_parse_disable_chn_cmd() - get disable channel list
 * in command.
 * @hdd_ctx: hdd context
 * @buf: buffer to hold disable channel list
 * @buf_len: buffer length
 *
 * @return: length of data copied to buf
 */
int hdd_get_disable_ch_list(hdd_context_t *hdd_ctx, tANI_U8 *buf,
                            tANI_U8 buf_len);

#endif    // end #if !defined( WLAN_HDD_MAIN_H )
Loading