Lines Matching refs:hCmdBld
91 static TI_STATUS cmdBld_ConfigSeq (TI_HANDLE hCmdBld);
92 static TI_STATUS cmdBld_GetCurrentAssociationId (TI_HANDLE hCmdBld, TI_UINT16 *pAidVal);
93 static TI_STATUS cmdBld_GetArpIpAddressesTable (TI_HANDLE hCmdBld, TIpAddr *pIpAddr, TI_UINT8 *pEnabled , EIpVer *pIpVer);
94 static TI_STATUS cmdBld_JoinCmpltForReconfigCb (TI_HANDLE hCmdBld);
95 static TI_STATUS cmdBld_DummyCb (TI_HANDLE hCmdBld);
193 TI_STATUS cmdBld_Destroy (TI_HANDLE hCmdBld)
195 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
204 pDmaParams = &DB_DMA(hCmdBld);
221 TI_STATUS cmdBld_Restart (TI_HANDLE hCmdBld)
223 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
232 cmdBld_CfgIeSleepAuth (hCmdBld, DB_WLAN(hCmdBld).minPowerLevel, NULL, NULL);
237 TI_STATUS cmdBld_Config (TI_HANDLE hCmdBld,
245 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
269 static void cmdBld_ConfigFwCb (TI_HANDLE hCmdBld, TI_STATUS status, void *pData)
271 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
273 TDmaParams *pDmaParams = &DB_DMA(hCmdBld);
319 TI_STATUS cmdBld_ConfigFw (TI_HANDLE hCmdBld, void *fConfigFwCb, TI_HANDLE hConfigFwCb)
321 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
330 return cmdBld_ConfigSeq (hCmdBld);
337 static TI_STATUS __cmd_probe_req (TI_HANDLE hCmdBld)
342 tStatus = cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
344 DB_WLAN(hCmdBld).probeRequestTemplateSize,
355 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
357 DB_WLAN(hCmdBld).probeRequestTemplateSize,
361 hCmdBld);
365 static TI_STATUS __cmd_null_data (TI_HANDLE hCmdBld)
367 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
369 DB_WLAN(hCmdBld).nullTemplateSize,
373 hCmdBld);
376 static TI_STATUS __cmd_burst_mode_enable (TI_HANDLE hCmdBld)
378 return cmdBld_CfgIeBurstMode (hCmdBld,
379 DB_AC(hCmdBld).isBurstModeEnabled,
381 hCmdBld);
385 static TI_STATUS __cmd_disconn (TI_HANDLE hCmdBld)
387 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
389 DB_WLAN(hCmdBld).disconnTemplateSize,
393 hCmdBld);
396 static TI_STATUS __cmd_ps_poll (TI_HANDLE hCmdBld)
398 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
400 DB_WLAN(hCmdBld).PsPollTemplateSize,
404 hCmdBld);
408 static TI_STATUS __cmd_qos_null_data (TI_HANDLE hCmdBld)
410 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
412 DB_WLAN(hCmdBld).qosNullDataTemplateSize,
416 hCmdBld);
420 static TI_STATUS __cmd_probe_resp (TI_HANDLE hCmdBld)
422 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
424 DB_WLAN(hCmdBld).probeResponseTemplateSize,
428 hCmdBld);
432 static TI_STATUS __cmd_beacon (TI_HANDLE hCmdBld)
434 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
436 DB_WLAN(hCmdBld).beaconTemplateSize,
440 hCmdBld);
443 static TI_STATUS __cmd_keep_alive_tmpl (TI_HANDLE hCmdBld)
455 status = cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
468 status = cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
474 hCmdBld);
480 static TI_STATUS __cfg_mem (TI_HANDLE hCmdBld)
483 return cmdBld_CfgIeConfigMemory (hCmdBld, &DB_DMA(hCmdBld), (void *)cmdBld_ConfigSeq, hCmdBld);
487 static TI_STATUS __cfg_rx_msdu_life_time (TI_HANDLE hCmdBld)
490 return cmdBld_CfgIeRxMsduLifeTime (hCmdBld,
491 DB_WLAN(hCmdBld).MaxRxMsduLifetime,
493 hCmdBld);
497 static TI_STATUS __cfg_rx (TI_HANDLE hCmdBld)
499 return cmdBld_CfgIeRx (hCmdBld,
500 DB_WLAN(hCmdBld).RxConfigOption,
501 DB_WLAN(hCmdBld).RxFilterOption,
503 hCmdBld);
507 static TI_STATUS __cfg_ac_params_0 (TI_HANDLE hCmdBld)
514 if (DB_AC(hCmdBld).isAcConfigured[0])
516 return cmdBld_CfgAcParams (hCmdBld, &DB_AC(hCmdBld).ac[0], (void *)cmdBld_ConfigSeq, hCmdBld);
525 static TI_STATUS __cfg_ac_params_1 (TI_HANDLE hCmdBld)
532 if (DB_AC(hCmdBld).isAcConfigured[1])
534 return cmdBld_CfgAcParams (hCmdBld, &DB_AC(hCmdBld).ac[1], (void *)cmdBld_ConfigSeq, hCmdBld);
543 static TI_STATUS __cfg_ac_params_2 (TI_HANDLE hCmdBld)
550 if (DB_AC(hCmdBld).isAcConfigured[2])
552 return cmdBld_CfgAcParams (hCmdBld, &DB_AC(hCmdBld).ac[2], (void *)cmdBld_ConfigSeq, hCmdBld);
561 static TI_STATUS __cfg_ac_params_3 (TI_HANDLE hCmdBld)
568 if (DB_AC(hCmdBld).isAcConfigured[3])
570 return cmdBld_CfgAcParams (hCmdBld, &DB_AC(hCmdBld).ac[3], (void *)cmdBld_ConfigSeq, hCmdBld);
579 static TI_STATUS __cfg_tid_0 (TI_HANDLE hCmdBld)
585 if (DB_QUEUES(hCmdBld).isQueueConfigured[0])
587 return cmdBld_CfgTid (hCmdBld, &DB_QUEUES(hCmdBld).queues[0], (void *)cmdBld_ConfigSeq, hCmdBld);
596 static TI_STATUS __cfg_tid_1 (TI_HANDLE hCmdBld)
602 if (DB_QUEUES(hCmdBld).isQueueConfigured[1])
604 return cmdBld_CfgTid (hCmdBld, &DB_QUEUES(hCmdBld).queues[1], (void *)cmdBld_ConfigSeq, hCmdBld);
613 static TI_STATUS __cfg_tid_2 (TI_HANDLE hCmdBld)
619 if (DB_QUEUES(hCmdBld).isQueueConfigured[2])
621 return cmdBld_CfgTid (hCmdBld, &DB_QUEUES(hCmdBld).queues[2], (void *)cmdBld_ConfigSeq, hCmdBld);
630 static TI_STATUS __cfg_tid_3 (TI_HANDLE hCmdBld)
636 if (DB_QUEUES(hCmdBld).isQueueConfigured[3])
638 return cmdBld_CfgTid (hCmdBld, &DB_QUEUES(hCmdBld).queues[3], (void *)cmdBld_ConfigSeq, hCmdBld);
647 static TI_STATUS __cfg_ps_rx_streaming (TI_HANDLE hCmdBld)
654 if (!DB_WLAN(hCmdBld).bJoin)
662 pPsRxStreaming = &(DB_PS_STREAM(hCmdBld).tid[index]);
666 eStatus = cmdBld_CfgPsRxStreaming (hCmdBld, pPsRxStreaming, NULL, NULL);
677 pPsRxStreaming = &(DB_PS_STREAM(hCmdBld).tid[MAX_NUM_OF_802_1d_TAGS - 1]);
680 eStatus = cmdBld_CfgPsRxStreaming (hCmdBld, pPsRxStreaming, (void *)cmdBld_ConfigSeq, hCmdBld);
691 static TI_STATUS __cfg_rx_data_filter (TI_HANDLE hCmdBld)
698 if (DB_RX_DATA_FLTR(hCmdBld).bEnabled)
700 eStatus = cmdBld_CfgIeEnableRxDataFilter (hCmdBld,
701 DB_RX_DATA_FLTR(hCmdBld).bEnabled,
702 DB_RX_DATA_FLTR(hCmdBld).eDefaultAction,
716 pFilters = &(DB_RX_DATA_FLTR(hCmdBld).aRxDataFilter[index]);
720 eStatus = cmdBld_CfgIeRxDataFilter (hCmdBld,
739 pFilters = &(DB_RX_DATA_FLTR(hCmdBld).aRxDataFilter[MAX_DATA_FILTERS - 1]);
742 eStatus = cmdBld_CfgIeRxDataFilter (hCmdBld,
750 hCmdBld);
761 static TI_STATUS __cfg_pd_threshold (TI_HANDLE hCmdBld)
763 return cmdBld_CfgIePacketDetectionThreshold (hCmdBld,
764 DB_WLAN(hCmdBld).PacketDetectionThreshold,
766 hCmdBld);
770 static TI_STATUS __cfg_slot_time (TI_HANDLE hCmdBld)
772 return cmdBld_CfgIeSlotTime (hCmdBld, DB_WLAN(hCmdBld).SlotTime, (void *)cmdBld_ConfigSeq, hCmdBld);
776 static TI_STATUS __cfg_arp_ip_filter (TI_HANDLE hCmdBld)
778 return cmdBld_CfgIeArpIpFilter (hCmdBld,
779 DB_WLAN(hCmdBld).arp_IP_addr,
780 (EArpFilterType)DB_WLAN(hCmdBld).arpFilterType,
782 hCmdBld);
785 static TI_STATUS __cfg_group_address_table (TI_HANDLE hCmdBld)
787 return cmdBld_CfgIeGroupAdressTable (hCmdBld,
788 DB_WLAN(hCmdBld).numGroupAddrs,
789 DB_WLAN(hCmdBld).aGroupAddr,
790 DB_WLAN(hCmdBld).isMacAddrFilteringnabled,
792 hCmdBld);
796 static TI_STATUS __cfg_service_period_timeout (TI_HANDLE hCmdBld)
798 return cmdBld_CfgIeServicePeriodTimeout (hCmdBld,
799 &DB_WLAN(hCmdBld).rxTimeOut,
801 hCmdBld);
805 static TI_STATUS __cfg_rts_threshold (TI_HANDLE hCmdBld)
807 return cmdBld_CfgRtsThreshold (hCmdBld,
808 DB_WLAN(hCmdBld).RtsThreshold,
810 hCmdBld);
813 static TI_STATUS __cfg_dco_itrim_params (TI_HANDLE hCmdBld)
815 return cmdBld_CfgDcoItrimParams (hCmdBld,
816 DB_WLAN(hCmdBld).dcoItrimEnabled,
817 DB_WLAN(hCmdBld).dcoItrimModerationTimeoutUsec,
819 hCmdBld);
822 static TI_STATUS __cfg_fragment_threshold (TI_HANDLE hCmdBld)
824 return cmdBld_CfgIeFragmentThreshold (hCmdBld,
825 DB_WLAN(hCmdBld).FragmentThreshold,
827 hCmdBld);
831 static TI_STATUS __cfg_pm_config (TI_HANDLE hCmdBld)
833 return cmdBld_CfgIePmConfig (hCmdBld,
834 DB_WLAN(hCmdBld).uHostClkSettlingTime,
835 DB_WLAN(hCmdBld).uHostFastWakeupSupport,
837 hCmdBld);
841 static TI_STATUS __cfg_beacon_filter_opt (TI_HANDLE hCmdBld)
844 return cmdBld_CfgIeBeaconFilterOpt (hCmdBld,
845 DB_WLAN(hCmdBld).beaconFilterParams.desiredState,
846 DB_WLAN(hCmdBld).beaconFilterParams.numOfElements,
848 hCmdBld);
852 static TI_STATUS __cfg_beacon_filter_table (TI_HANDLE hCmdBld)
854 return cmdBld_CfgIeBeaconFilterTable (hCmdBld,
855 DB_WLAN(hCmdBld).beaconFilterIETable.numberOfIEs,
856 DB_WLAN(hCmdBld).beaconFilterIETable.IETable,
857 DB_WLAN(hCmdBld).beaconFilterIETable.IETableSize,
859 hCmdBld);
863 static TI_STATUS __cfg_tx_cmplt_pacing (TI_HANDLE hCmdBld)
865 return cmdBld_CfgIeTxCmpltPacing (hCmdBld,
866 DB_WLAN(hCmdBld).TxCompletePacingThreshold,
867 DB_WLAN(hCmdBld).TxCompletePacingTimeout,
869 hCmdBld);
873 static TI_STATUS __cfg_rx_intr_pacing (TI_HANDLE hCmdBld)
875 return cmdBld_CfgIeRxIntrPacing (hCmdBld,
876 DB_WLAN(hCmdBld).RxIntrPacingThreshold,
877 DB_WLAN(hCmdBld).RxIntrPacingTimeout,
879 hCmdBld);
884 static TI_STATUS __cfg_coex_activity_table (TI_HANDLE hCmdBld)
886 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
887 TI_UINT32 uNumberOfIEs = DB_WLAN(hCmdBld).tWlanParamsCoexActivityTable.numOfElements;
888 TCoexActivity *CoexActivityTable = DB_WLAN(hCmdBld).tWlanParamsCoexActivityTable.entry;
905 status = cmdBld_CfgIeCoexActivity (hCmdBld, &CoexActivityTable[index],
915 status = cmdBld_CfgIeCoexActivity (hCmdBld, &CoexActivityTable[index],
916 (void *)cmdBld_ConfigSeq, hCmdBld);
922 static TI_STATUS __cfg_cca_threshold (TI_HANDLE hCmdBld)
924 return cmdBld_CfgIeCcaThreshold (hCmdBld,
925 DB_WLAN(hCmdBld).ch14TelecCca,
927 hCmdBld);
931 static TI_STATUS __cfg_bcn_brc_options (TI_HANDLE hCmdBld)
936 powerMgmtConfig.BcnBrcOptions = DB_WLAN(hCmdBld).BcnBrcOptions;
937 powerMgmtConfig.ConsecutivePsPollDeliveryFailureThreshold = DB_WLAN(hCmdBld).ConsecutivePsPollDeliveryFailureThreshold;
939 return cmdBld_CfgIeBcnBrcOptions (hCmdBld,
942 hCmdBld);
946 static TI_STATUS __cmd_enable_rx (TI_HANDLE hCmdBld)
949 return cmdBld_CmdEnableRx (hCmdBld, (void *)cmdBld_ConfigSeq, hCmdBld);
953 static TI_STATUS __cmd_enable_tx (TI_HANDLE hCmdBld)
956 return cmdBld_CmdEnableTx (hCmdBld,
957 DB_DEFAULT_CHANNEL(hCmdBld),
959 hCmdBld);
963 static TI_STATUS __cfg_ps_wmm (TI_HANDLE hCmdBld)
966 return cmdBld_CfgIePsWmm (hCmdBld,
967 DB_WLAN(hCmdBld).WiFiWmmPS,
969 hCmdBld);
973 static TI_STATUS __cfg_rssi_snr_weights (TI_HANDLE hCmdBld)
976 return cmdBld_CfgIeRssiSnrWeights (hCmdBld,
977 &DB_WLAN(hCmdBld).tRssiSnrWeights,
979 hCmdBld);
983 static TI_STATUS __cfg_event_scan_cmplt (TI_HANDLE hCmdBld)
985 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
991 hCmdBld);
994 static TI_STATUS __cfg_event_sps_scan_cmplt (TI_HANDLE hCmdBld)
996 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1001 hCmdBld);
1004 static TI_STATUS __cfg_event_plt_rx_calibration_cmplt (TI_HANDLE hCmdBld)
1006 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1011 hCmdBld);
1015 static TI_STATUS __cfg_hw_enc_dec_enable (TI_HANDLE hCmdBld)
1017 return cmdBld_CfgHwEncDecEnable (hCmdBld, TI_TRUE, (void *)cmdBld_ConfigSeq, hCmdBld);
1021 static TI_STATUS __cfg_rssi_snr_trigger_0 (TI_HANDLE hCmdBld)
1024 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1025 &DB_WLAN(hCmdBld).tRssiSnrTrigger[0],
1027 hCmdBld);
1031 static TI_STATUS __cfg_rssi_snr_trigger_1 (TI_HANDLE hCmdBld)
1034 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1035 &DB_WLAN(hCmdBld).tRssiSnrTrigger[1],
1037 hCmdBld);
1041 static TI_STATUS __cfg_rssi_snr_trigger_2 (TI_HANDLE hCmdBld)
1044 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1045 &DB_WLAN(hCmdBld).tRssiSnrTrigger[2],
1047 hCmdBld);
1051 static TI_STATUS __cfg_rssi_snr_trigger_3 (TI_HANDLE hCmdBld)
1054 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1055 &DB_WLAN(hCmdBld).tRssiSnrTrigger[3],
1057 hCmdBld);
1061 static TI_STATUS __cfg_rssi_snr_trigger_4 (TI_HANDLE hCmdBld)
1064 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1065 &DB_WLAN(hCmdBld).tRssiSnrTrigger[4],
1067 hCmdBld);
1071 static TI_STATUS __cfg_rssi_snr_trigger_5 (TI_HANDLE hCmdBld)
1074 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1075 &DB_WLAN(hCmdBld).tRssiSnrTrigger[5],
1077 hCmdBld);
1081 static TI_STATUS __cfg_rssi_snr_trigger_6 (TI_HANDLE hCmdBld)
1084 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1085 &DB_WLAN(hCmdBld).tRssiSnrTrigger[6],
1087 hCmdBld);
1091 static TI_STATUS __cfg_rssi_snr_trigger_7 (TI_HANDLE hCmdBld)
1094 return cmdBld_CfgIeRssiSnrTrigger (hCmdBld,
1095 &DB_WLAN(hCmdBld).tRssiSnrTrigger[7],
1097 hCmdBld);
1101 static TI_STATUS __cfg_max_tx_retry (TI_HANDLE hCmdBld)
1103 return cmdBld_CfgIeMaxTxRetry (hCmdBld,
1104 &DB_WLAN(hCmdBld).roamTriggers,
1106 hCmdBld);
1111 static TI_STATUS __cfg_split_scan_timeout (TI_HANDLE hCmdBld)
1113 return cmdBld_CmdIeSetSplitScanTimeOut (hCmdBld,
1114 DB_WLAN(hCmdBld).uSlicedScanTimeOut,
1116 hCmdBld);
1120 static TI_STATUS __cfg_conn_monit_params (TI_HANDLE hCmdBld)
1122 return cmdBld_CfgIeConnMonitParams (hCmdBld,
1123 &DB_WLAN(hCmdBld).roamTriggers,
1125 hCmdBld);
1129 static TI_STATUS __cfg_bet (TI_HANDLE hCmdBld)
1131 return cmdBld_CfgBet (hCmdBld,
1132 DB_WLAN(hCmdBld).BetEnable,
1133 DB_WLAN(hCmdBld).MaximumConsecutiveET,
1135 hCmdBld);
1139 static TI_STATUS __cfg_cts_protection (TI_HANDLE hCmdBld)
1141 return cmdBld_CfgIeCtsProtection (hCmdBld,
1142 DB_WLAN(hCmdBld).CtsToSelf,
1144 hCmdBld);
1148 static TI_STATUS __cfg_radio_params (TI_HANDLE hCmdBld)
1150 return cmdBld_CfgIeRadioParams (hCmdBld,
1151 &DB_RADIO(hCmdBld),
1153 hCmdBld);
1157 static TI_STATUS __cfg_extended_radio_params (TI_HANDLE hCmdBld)
1159 return cmdBld_CfgIeExtendedRadioParams (hCmdBld,
1160 &DB_EXT_RADIO(hCmdBld),
1162 hCmdBld);
1166 static TI_STATUS __cfg_platform_params (TI_HANDLE hCmdBld)
1168 return cmdBld_CfgPlatformGenParams(hCmdBld,
1169 &DB_GEN(hCmdBld),
1171 hCmdBld);
1176 static TI_STATUS __cfg_tx_rate_policy (TI_HANDLE hCmdBld)
1181 if (DB_WLAN(hCmdBld).bJoin)
1184 return cmdBld_CfgTxRatePolicy (hCmdBld,
1185 &DB_BSS(hCmdBld).TxRateClassParams,
1187 hCmdBld);
1194 static TI_STATUS __cmd_beacon_join (TI_HANDLE hCmdBld)
1196 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).Beacon.Size != 0)
1198 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1199 &(DB_TEMP(hCmdBld).Beacon),
1200 (TI_UINT16)DB_TEMP(hCmdBld).Beacon.Size,
1204 hCmdBld);
1210 static TI_STATUS __cmd_probe_resp_join (TI_HANDLE hCmdBld)
1212 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).ProbeResp.Size != 0)
1214 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1215 &(DB_TEMP(hCmdBld).ProbeResp),
1216 (TI_UINT16)DB_TEMP(hCmdBld).ProbeResp.Size,
1220 hCmdBld);
1227 static TI_STATUS __cmd_probe_req_join (TI_HANDLE hCmdBld)
1232 if (DB_TEMP(hCmdBld).ProbeReq24.Size != 0)
1234 tStatus = cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1235 &(DB_TEMP(hCmdBld).ProbeReq24),
1236 (TI_UINT16)DB_TEMP(hCmdBld).ProbeReq24.Size,
1248 if (DB_TEMP(hCmdBld).ProbeReq50.Size != 0)
1250 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1251 &(DB_TEMP(hCmdBld).ProbeReq50),
1252 (TI_UINT16)DB_TEMP(hCmdBld).ProbeReq50.Size,
1256 hCmdBld);
1263 static TI_STATUS __cmd_null_data_join (TI_HANDLE hCmdBld)
1265 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).NullData.Size != 0)
1267 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1268 &(DB_TEMP(hCmdBld).NullData),
1269 (TI_UINT16)DB_TEMP(hCmdBld).NullData.Size,
1273 hCmdBld);
1279 static TI_STATUS __cmd_disconn_join (TI_HANDLE hCmdBld)
1281 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).Disconn.Size != 0)
1283 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1284 &(DB_TEMP(hCmdBld).Disconn),
1285 (TI_UINT16)DB_TEMP(hCmdBld).Disconn.Size,
1289 hCmdBld);
1295 static TI_STATUS __cmd_ps_poll_join (TI_HANDLE hCmdBld)
1297 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).PsPoll.Size != 0)
1299 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1300 &(DB_TEMP(hCmdBld).PsPoll),
1301 (TI_UINT16)DB_TEMP(hCmdBld).PsPoll.Size,
1305 hCmdBld);
1311 static TI_STATUS __cmd_arp_rsp (TI_HANDLE hCmdBld)
1314 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1316 DB_WLAN(hCmdBld).ArpRspTemplateSize,
1320 hCmdBld);
1324 static TI_STATUS __cmd_arp_rsp_join (TI_HANDLE hCmdBld)
1327 if ((DB_WLAN(hCmdBld).bJoin) && (DB_TEMP(hCmdBld).ArpRsp.Size != 0))
1329 return cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1330 &(DB_TEMP(hCmdBld).ArpRsp),
1331 DB_TEMP(hCmdBld).ArpRsp.Size,
1335 hCmdBld);
1344 static TI_STATUS __cmd_keep_alive_tmpl_join (TI_HANDLE hCmdBld)
1356 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).KeepAlive[ index ].Size != 0)
1358 status = cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1359 &(DB_TEMP(hCmdBld).KeepAlive[index]),
1360 (TI_UINT16)DB_TEMP(hCmdBld).KeepAlive[index].Size,
1372 if (DB_WLAN(hCmdBld).bJoin && DB_TEMP(hCmdBld).KeepAlive[ index ].Size != 0)
1374 status = cmdBld_CmdIeConfigureTemplateFrame (hCmdBld,
1375 &(DB_TEMP(hCmdBld).KeepAlive[index]),
1376 (TI_UINT16)DB_TEMP(hCmdBld).KeepAlive[index].Size,
1380 hCmdBld);
1391 static TI_STATUS __cmd_keep_alive_params(TI_HANDLE hCmdBld)
1397 cmdBld_CfgKeepAliveEnaDis (hCmdBld, DB_KLV(hCmdBld).enaDisFlag, NULL, NULL);
1406 if (DB_WLAN(hCmdBld).bJoin && DB_KLV(hCmdBld).keepAliveParams[ index ].enaDisFlag != 0)
1408 status = cmdBld_CmdIeConfigureKeepAliveParams (hCmdBld,
1410 DB_KLV(hCmdBld).keepAliveParams[ index ].enaDisFlag,
1411 DB_KLV(hCmdBld).keepAliveParams[ index ].trigType,
1412 DB_KLV(hCmdBld).keepAliveParams[ index ].interval,
1425 if (DB_WLAN(hCmdBld).bJoin && DB_KLV(hCmdBld).keepAliveParams[ index ].enaDisFlag != 0)
1427 status = cmdBld_CmdIeConfigureKeepAliveParams (hCmdBld,
1429 DB_KLV(hCmdBld).keepAliveParams[ index ].enaDisFlag,
1430 DB_KLV(hCmdBld).keepAliveParams[ index ].trigType,
1431 DB_KLV(hCmdBld).keepAliveParams[ index ].interval,
1433 hCmdBld);
1443 static TI_STATUS __cmd_power_auth (TI_HANDLE hCmdBld)
1445 return cmdBld_CfgIeSleepAuth (hCmdBld,
1446 DB_WLAN(hCmdBld).minPowerLevel,
1448 hCmdBld);
1451 static TI_STATUS __cmd_start_join (TI_HANDLE hCmdBld)
1453 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1455 if (DB_WLAN(hCmdBld).bJoin)
1465 hCmdBld,
1471 return cmdBld_CmdStartJoin (hCmdBld,
1472 (ScanBssType_e)DB_BSS(hCmdBld).ReqBssType,
1474 hCmdBld);
1480 static TI_STATUS __cmd_sta_state (TI_HANDLE hCmdBld)
1482 if (DB_WLAN(hCmdBld).bStaConnected)
1484 return cmdBld_CmdSetStaState (hCmdBld,
1487 hCmdBld);
1493 static TI_STATUS __cfg_aid (TI_HANDLE hCmdBld)
1495 if (DB_WLAN(hCmdBld).bJoin)
1497 return cmdBld_CfgAid (hCmdBld, DB_WLAN(hCmdBld).Aid, (void *)cmdBld_ConfigSeq, hCmdBld);
1504 static TI_STATUS __cfg_slot_time_join (TI_HANDLE hCmdBld)
1506 if (DB_WLAN(hCmdBld).bJoin)
1509 return cmdBld_CfgSlotTime (hCmdBld, (ESlotTime)(DB_WLAN(hCmdBld).SlotTime), (void *)cmdBld_ConfigSeq, hCmdBld);
1516 static TI_STATUS __cfg_preamble_join (TI_HANDLE hCmdBld)
1518 if (DB_WLAN(hCmdBld).bJoin)
1521 return cmdBld_CfgPreamble (hCmdBld, (Preamble_e) DB_WLAN(hCmdBld).preamble, (void *)cmdBld_ConfigSeq, hCmdBld);
1528 static TI_STATUS __cfg_ht_capabilities (TI_HANDLE hCmdBld)
1530 if (DB_WLAN(hCmdBld).bJoin && DB_BSS(hCmdBld).bHtCap)
1533 return cmdBld_CfgIeSetFwHtCapabilities (hCmdBld,
1534 DB_BSS(hCmdBld).uHtCapabilites,
1535 DB_BSS(hCmdBld).tMacAddress,
1536 DB_BSS(hCmdBld).uAmpduMaxLeng,
1537 DB_BSS(hCmdBld).uAmpduMinSpac,
1539 hCmdBld);
1546 static TI_STATUS __cfg_ht_information (TI_HANDLE hCmdBld)
1548 if (DB_WLAN(hCmdBld).bJoin && DB_BSS(hCmdBld).bHtInf)
1551 return cmdBld_CfgIeSetFwHtInformation (hCmdBld,
1552 DB_BSS(hCmdBld).uRifsMode,
1553 DB_BSS(hCmdBld).uHtProtection,
1554 DB_BSS(hCmdBld).uGfProtection,
1555 DB_BSS(hCmdBld).uHtTxBurstLimit,
1556 DB_BSS(hCmdBld).uDualCtsProtection,
1558 hCmdBld);
1565 static TI_STATUS __cfg_ba_set_session (TI_HANDLE hCmdBld)
1569 if (DB_WLAN(hCmdBld).bJoin)
1578 if (DB_BSS(hCmdBld).bBaInitiator[uTid] || DB_BSS(hCmdBld).bBaResponder[uTid])
1589 if (DB_BSS(hCmdBld).bBaInitiator[uTid])
1592 tRes = cmdBld_CfgIeSetBaSession (hCmdBld,
1595 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uTid].uPolicy,
1596 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uTid].aMacAddress,
1597 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uTid].uWinSize,
1598 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uTid].uInactivityTimeout,
1607 if (DB_BSS(hCmdBld).bBaResponder[uTid])
1610 tRes = cmdBld_CfgIeSetBaSession (hCmdBld,
1613 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uTid].uPolicy,
1614 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uTid].aMacAddress,
1615 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uTid].uWinSize,
1616 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uTid].uInactivityTimeout,
1627 if (DB_BSS(hCmdBld).bBaInitiator[uLastTid] && !(DB_BSS(hCmdBld).bBaResponder[uLastTid]))
1630 tRes = cmdBld_CfgIeSetBaSession (hCmdBld,
1633 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].uPolicy,
1634 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].aMacAddress,
1635 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].uWinSize,
1636 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].uInactivityTimeout,
1638 hCmdBld);
1640 else if (!(DB_BSS(hCmdBld).bBaInitiator[uLastTid]) && DB_BSS(hCmdBld).bBaResponder[uLastTid])
1642 tRes = cmdBld_CfgIeSetBaSession (hCmdBld,
1645 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].uPolicy,
1646 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].aMacAddress,
1647 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].uWinSize,
1648 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].uInactivityTimeout,
1650 hCmdBld);
1655 tRes = cmdBld_CfgIeSetBaSession (hCmdBld,
1658 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].uPolicy,
1659 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].aMacAddress,
1660 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].uWinSize,
1661 DB_BSS(hCmdBld).tBaSessionInitiatorPolicy[uLastTid].uInactivityTimeout,
1669 tRes = cmdBld_CfgIeSetBaSession (hCmdBld,
1672 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].uPolicy,
1673 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].aMacAddress,
1674 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].uWinSize,
1675 DB_BSS(hCmdBld).tBaSessionResponderPolicy[uLastTid].uInactivityTimeout,
1677 hCmdBld);
1686 static TI_STATUS __cfg_tx_power_join (TI_HANDLE hCmdBld)
1688 if (DB_WLAN(hCmdBld).bJoin)
1691 return cmdBld_CfgTxPowerDbm (hCmdBld, DB_WLAN(hCmdBld).TxPowerDbm, (void *)cmdBld_ConfigSeq, hCmdBld);
1698 static TI_STATUS __cfg_keys (TI_HANDLE hCmdBld)
1700 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1703 if (!DB_WLAN(hCmdBld).bJoin)
1715 cmdBld_SetSecuritySeqNum (hCmdBld, (TI_UINT8)(pCmdBld->uSecuritySeqNumLow - 1));
1725 if (cmdBld_CmdAddKey (hCmdBld, DB_KEYS(pCmdBld).pReconfKeys + index, TI_TRUE, NULL, NULL) != TI_OK)
1736 if (cmdBld_CmdSetWepDefaultKeyId (hCmdBld, DB_KEYS(pCmdBld).uReconfDefaultKeyId, NULL, NULL) != TI_OK)
1745 if (cmdBld_CfgHwEncDecEnable (hCmdBld,
1748 hCmdBld) != TI_OK)
1757 static TI_STATUS __cfg_sg_enable (TI_HANDLE hCmdBld)
1760 return cmdBld_CfgSgEnable (hCmdBld,
1761 DB_WLAN(hCmdBld).SoftGeminiEnable,
1763 hCmdBld);
1767 static TI_STATUS __cfg_sg (TI_HANDLE hCmdBld)
1772 DB_WLAN(hCmdBld).SoftGeminiParams.paramIdx = 0xFF;
1774 return cmdBld_CfgSg (hCmdBld,
1775 &DB_WLAN(hCmdBld).SoftGeminiParams,
1777 hCmdBld);
1781 static TI_STATUS __cfg_fm_coex (TI_HANDLE hCmdBld)
1784 return cmdBld_CfgIeFmCoex (hCmdBld,
1785 &DB_WLAN(hCmdBld).tFmCoexParams,
1787 hCmdBld);
1791 static TI_STATUS __cfg_rate_management (TI_HANDLE hCmdBld)
1793 DB_RM(hCmdBld).rateMngParams.paramIndex = (rateAdaptParam_e) 0xFF;
1795 return cmdBld_CfgIeRateMngDbg(hCmdBld,
1796 &DB_RM(hCmdBld).rateMngParams,
1798 hCmdBld);
1803 TI_STATUS __itr_memory_map (TI_HANDLE hCmdBld)
1805 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1810 return cmdBld_ItrIeMemoryMap (hCmdBld,
1813 hCmdBld);
1926 TI_STATUS cmdBld_ConfigSeq (TI_HANDLE hCmdBld)
1928 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1937 while ((*aCmdIniSeq [pCmdBld->uIniSeq - 1])(hCmdBld) != TI_OK);
1953 void cmdBld_FinalizeDownload (TI_HANDLE hCmdBld, TBootAttr *pBootAttr, FwStaticData_t *pFwInfo)
1955 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1962 (void *)DB_HW(hCmdBld).fwVer,
1964 sizeof(DB_HW(hCmdBld).fwVer));
1973 MAC_COPY (DB_HW(hCmdBld).macAddress, pMacAddr);
1977 (void *)&(DB_HW(hCmdBld).uHardWareVersion),
1979 sizeof(DB_HW(hCmdBld).uHardWareVersion));
1983 (void *)DB_HW(hCmdBld).txPowerTable,
1985 sizeof(DB_HW(hCmdBld).txPowerTable));
1992 TI_STATUS cmdBld_GetParam (TI_HANDLE hCmdBld, TTwdParamInfo *pParamInfo)
1994 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
1995 TWlanParams *pWlanParams = &DB_WLAN(hCmdBld);
2013 pParamInfo->content.halCtrlCounters.FcsErrors = DB_CNT(hCmdBld).FcsErrCnt;
2014 pParamInfo->content.halCtrlCounters.RecvError = DB_CNT(hCmdBld).FcsErrCnt;
2042 if (cmdBld_ItrIeMediumOccupancy (hCmdBld, pParamInfo->content.interogateCmdCBParams) != TI_OK)
2047 if (cmdBld_ItrIeTfsDtim (hCmdBld, pParamInfo->content.interogateCmdCBParams) != TI_OK)
2052 if (cmdBld_GetCurrentAssociationId (hCmdBld, &pParamInfo->content.halCtrlAid) != TI_OK)
2059 if (cmdBld_ItrIeNoiseHistogramResults (hCmdBld, pParamInfo->content.interogateCmdCBParams) != TI_OK)
2067 pParamInfo->content.halCtrlCurrentChannel = DB_BSS(hCmdBld).RadioChannel;
2074 cmdBld_ItrRSSI (hCmdBld,
2091 pParamInfo->content.pTxRatePlicy = &DB_BSS(hCmdBld).TxRateClassParams;
2095 return cmdBld_ItrSg (hCmdBld,
2101 pParamInfo->content.halCtrlTxPowerDbm = DB_WLAN(hCmdBld).TxPowerDbm;
2106 return cmdBld_CmdTest (hCmdBld,
2125 static TI_STATUS cmdBld_ReadMibBeaconFilterIETable (TI_HANDLE hCmdBld, TI_HANDLE hCb, void* fCb, void* pCb)
2127 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
2133 pMib->aData.BeaconFilter.iNumberOfIEs = DB_WLAN(hCmdBld).beaconFilterIETable.numberOfIEs;
2134 IETableSize = DB_WLAN(hCmdBld).beaconFilterIETable.IETableSize;
2142 DB_WLAN(hCmdBld).beaconFilterIETable.IETable,
2162 static TI_STATUS cmdBld_ReadMibTxRatePolicy (TI_HANDLE hCmdBld, TI_HANDLE hCb, void* fCb, void* pCb)
2170 cmdBld_GetParam (hCmdBld, ¶m);
2183 TI_STATUS cmdBld_ReadMib (TI_HANDLE hCmdBld, TI_HANDLE hCb, void* fCb, void* pCb)
2185 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
2201 Status = cmdBld_GetParam (hCmdBld, &ParamInfo);
2209 Status = cmdBld_GetGroupAddressTable (hCmdBld,
2225 Status = cmdBld_GetParam (hCmdBld, &ParamInfo);
2238 Status = cmdBld_GetArpIpAddressesTable (hCmdBld, &IpAddress, &Enable, &IPver);
2264 Status = cmdBld_GetRxFilters (hCmdBld, &RxConfigOption, &RxFilterOption);
2278 return cmdBld_ReadMibBeaconFilterIETable (hCmdBld, hCb, fCb, pCb);
2281 return cmdBld_ReadMibTxRatePolicy (hCmdBld, hCb, fCb, pCb);
2284 return cmdBld_ItrErrorCnt (hCmdBld, fCb, hCb, pCb);
2287 return cmdBld_ItrRoamimgStatisitics (hCmdBld, fCb, hCb, pCb);
2301 TI_STATUS cmdBld_GetGroupAddressTable (TI_HANDLE hCmdBld, TI_UINT8* pEnabled, TI_UINT8* pNumGroupAddrs, TMacAddr *pGroupAddr)
2303 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
2312 *pNumGroupAddrs = DB_WLAN(hCmdBld).numGroupAddrs;
2313 *pEnabled = DB_WLAN(hCmdBld).isMacAddrFilteringnabled;
2320 &DB_WLAN(hCmdBld).aGroupAddr[i],
2328 TI_STATUS cmdBld_GetRxFilters (TI_HANDLE hCmdBld, TI_UINT32* pRxConfigOption, TI_UINT32* pRxFilterOption)
2330 *pRxConfigOption = DB_WLAN(hCmdBld).RxConfigOption;
2331 *pRxFilterOption = DB_WLAN(hCmdBld).RxFilterOption;
2337 TFwInfo * cmdBld_GetFWInfo (TI_HANDLE hCmdBld)
2339 return &DB_HW(hCmdBld);
2344 TI_STATUS cmdBld_SetRadioBand (TI_HANDLE hCmdBld, ERadioBand eRadioBand)
2346 DB_WLAN(hCmdBld).RadioBand = eRadioBand;
2363 TI_STATUS cmdBld_GetCurrentAssociationId (TI_HANDLE hCmdBld, TI_UINT16 *pAidVal)
2365 *pAidVal = DB_WLAN(hCmdBld).Aid;
2380 TI_STATUS cmdBld_GetArpIpAddressesTable (TI_HANDLE hCmdBld, TIpAddr *pIp, TI_UINT8* pbEnabled, EIpVer *pIpVer)
2382 *pIpVer = (EIpVer)DB_WLAN(hCmdBld).arp_IP_ver;
2384 IP_COPY (*pIp, DB_WLAN(hCmdBld).arp_IP_addr);
2386 *pbEnabled = (TI_UINT8)DB_WLAN(hCmdBld).arpFilterType;
2493 TI_STATUS cmdBld_SetRxFilter (TI_HANDLE hCmdBld, TI_UINT32 uRxConfigOption, TI_UINT32 uRxFilterOption)
2495 DB_WLAN(hCmdBld).RxConfigOption = uRxConfigOption;
2496 DB_WLAN(hCmdBld).RxFilterOption = uRxFilterOption;
2497 DB_WLAN(hCmdBld).RxConfigOption |= RX_CFG_ENABLE_PHY_HEADER_PLCP;
2499 if (DB_WLAN(hCmdBld).RxDisableBroadcast)
2501 DB_WLAN(hCmdBld).RxConfigOption |= RX_CFG_DISABLE_BCAST;
2508 TI_UINT8 cmdBld_GetBssType (TI_HANDLE hCmdBld)
2510 return DB_BSS(hCmdBld).ReqBssType;
2514 TI_UINT32 cmdBld_GetAckPolicy (TI_HANDLE hCmdBld, TI_UINT32 uQueueId)
2516 return (TI_UINT32)DB_QUEUES(hCmdBld).queues[uQueueId].ackPolicy;
2520 TI_STATUS cmdBld_SetSecuritySeqNum (TI_HANDLE hCmdBld, TI_UINT8 securitySeqNumLsByte)
2522 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
2550 * INPUTS: hCmdBld - The module object
2556 static TI_STATUS cmdBld_JoinCmpltForReconfigCb (TI_HANDLE hCmdBld)
2558 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;
2571 cmdBld_ConfigSeq (hCmdBld);
2578 static TI_STATUS cmdBld_DummyCb (TI_HANDLE hCmdBld)
2589 void cmdBld_DbgForceTemplatesRates (TI_HANDLE hCmdBld, TI_UINT32 uRateMask)
2591 TCmdBld *pCmdBld = (TCmdBld *)hCmdBld;