{"id":6615,"date":"2021-07-10T18:11:40","date_gmt":"2021-07-10T10:11:40","guid":{"rendered":"http:\/\/ivan.xin\/?p=6615"},"modified":"2021-07-11T11:27:06","modified_gmt":"2021-07-11T03:27:06","slug":"%e5%ae%89%e5%8d%9310%e5%88%b7%e6%9c%ba%e5%90%8ewifi%e6%90%9c%e4%b8%8d%e5%88%b012%e4%bf%a1%e9%81%93%e7%9a%84%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/ivan.xin\/?p=6615","title":{"rendered":"\u5b89\u535310\u5237\u673a\u540eWIFI\u641c\u4e0d\u523012\u4fe1\u9053\u7684\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"<p>\u5206\u6790\uff1a<br \/>\n\u6d4b\u8bd5\u4e86\u5f88\u591a\u904d\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u89e3\u51b3\u65b9\u6848\uff0c\u4e3b\u8981\u539f\u56e0\u8fd8\u662fWiFi\u56fd\u5bb6\u4ee3\u7801\u7684\u95ee\u9898\u3002<\/p>\n<p>12\u4fe1\u9053\u641c\u4e0d\u5230\u7684\u65f6\u5019\uff0c\u7528\u547d\u4ee4# iw list\u67e5\u770b\u7ed3\u679c\uff0c12\u300113\u548c14\u4fe1\u9053\u90fd\u662fdisabled\u7684\u3002<\/p>\n<p>\u7528\u547d\u4ee4# iw reg set CN\uff0c\u4e5f\u4e0d\u8d77\u4f5c\u7528\u3002<\/p>\n<p>\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\uff0c\u8fd9\u91cc\u6709\u8be6\u7ec6\u7684\u5e76\u4e14\u6709\u7528\u7684\u53c2\u8003\u8d44\u6599<a href=\"https:\/\/www.cnblogs.com\/helloworldtoyou\/p\/9965019.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.cnblogs.com\/helloworldtoyou\/p\/9965019.html<\/a>\uff0c\u5176\u4ed6\u5730\u65b9\u7684\u5f88\u591a\u8bbe\u7f6e\u90fd\u6ca1\u4ec0\u4e48\u4f5c\u7528\u3002<\/p>\n<p>\u6309\u5206\u6790\uff0c\u8fd9\u4e2a\u987a\u5e8f802.11d &gt; userspacecommands &gt; gStaCountryCode in WCNSS_qcom_cfg.ini &gt; DefaultCountryTable in WCNSS_qcom_wlan_nv.bin\uff0c\u4fee\u6539g11dSupportEnabled=1\u540e\u63d2\u4e0aSIM\u5361\u5e94\u8be5\u662f\u6709\u7528\u7684\uff0c\u4f46\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\uff0c\u6211\u4fee\u6539\u4e86\u4e5f\u4e0d\u8d77\u4f5c\u7528\uff0c\u53ef\u80fd\u662f\u6ca1\u6709\u4fee\u6539gEnableBypass11d=1\u7684\u7f18\u6545\u3002\u4f46\u540e\u7eed\u53c8\u6d4b\u8bd5\u4e86\u4e00\u904d\uff0cgEnableBypass11d=1\u548cg11dSupportEnabled=1\u90fd\u8bbe\u7f6e\u4e86\uff0c\u8fd8\u662f\u4e0d\u8d77\u4f5c\u7528\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u6700\u540e\u89e3\u51b3\uff1aroot\u624b\u673a\u540e\uff0c\u8981\u6267\u884c\u4e24\u4e2a\u547d\u4ee4# mount -o remount,rw \/ \u548c # setenforce 0\uff0c\u5377\u53ef\u8bfb\u5199\uff0c\u628aselinux\u5173\u6389\uff0c\u5426\u5219\u4f60\u4fee\u6539\u4e0d\u4e86\u6587\u4ef6\u5185\u5bb9\u3002\u7136\u540e\u4fee\u6539\/system\/vendor\/firmware\/waln\/WCNSS_qcom_cfg.ini\uff0c\u6dfb\u52a0\u4e00\u884c\u5185\u5bb9\uff1a<\/span><strong>gStaCountryCode=CN<\/strong><span style=\"color: #ff0000;\">\uff0c\u95ee\u9898\u5c31\u89e3\u51b3\u4e86\uff01<\/span><\/p>\n<p>\u539f\u7248\u7684\u914d\u7f6e\u53ef\u80fd\u4f1a\u4f7fWIFI\u8fde\u63a5\u901f\u5ea6\u5f88\u6162\uff0c\u4ee5\u4e0b\u662f\u4f18\u5316\u540e\u7684WCNSS_qcom_cfg.ini\u7684\u5168\u6587\uff0c\u6548\u679c\u63d0\u5347\u660e\u663e\uff1a<\/p>\n<blockquote><p># This file allows user to override the factory<br \/>\n# defaults for the WLAN Driver<br \/>\ngStaCountryCode=CN<br \/>\n# Enable IMPS or not<br \/>\ngEnableImps=1<br \/>\n# Enable\/Disable Idle Scan<br \/>\ngEnableIdleScan=0<br \/>\n# Increase sleep duration (seconds) during IMPS<br \/>\n# 0 implies no periodic wake up from IMPS. Periodic wakeup is<br \/>\n# unnecessary if Idle Scan is disabled.<br \/>\ngImpsModSleepTime=0<br \/>\n# Enable BMPS or not<br \/>\ngEnableBmps=1<br \/>\n# Enable suspend or not<br \/>\n# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast\/Bcast Filter<br \/>\ngEnableSuspend=3<br \/>\n# Phy Mode (auto, b, g, n, etc)<br \/>\n# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac<br \/>\ngDot11Mode=0<br \/>\n# CSR Roaming Enable(1) Disable(0)<br \/>\ngRoamingTime=0<br \/>\n#heart add for userspace set channel<br \/>\ngSapAllowAllChannel=1<br \/>\n# Assigned MAC Addresses - This will be used until NV items are in place<br \/>\n# Each byte of MAC address is represented in Hex format as XX<br \/>\nIntf0MacAddress=000AF58989FF<br \/>\nIntf1MacAddress=000AF58989FE<br \/>\nIntf2MacAddress=000AF58989FD<br \/>\nIntf3MacAddress=000AF58989FC<br \/>\n# UAPSD service interval for VO,VI, BE, BK traffic<br \/>\nInfraUapsdVoSrvIntv=0<br \/>\nInfraUapsdViSrvIntv=0<br \/>\nInfraUapsdBeSrvIntv=0<br \/>\nInfraUapsdBkSrvIntv=0<br \/>\n# Flag to allow STA send AddTspec even when ACM is Off<br \/>\ngAddTSWhenACMIsOff=1<br \/>\n# Make 1x1 the default antenna configuration<br \/>\ngNumRxAnt=1<br \/>\n# Beacon filtering frequency (unit in beacon intervals)<br \/>\ngNthBeaconFilter=50<br \/>\n# Enable WAPI or not<br \/>\n# WAPIIsEnabled=0<br \/>\n# Flags to filter Mcast abd Bcast RX packets.<br \/>\n# Value 0: No filtering, 1: Filter all Multicast.<br \/>\n# 2: Filter all Broadcast. 3: Filter all Mcast abd Bcast<br \/>\nMcastBcastFilter=3<br \/>\n#Flag to enable HostARPOffload feature or not<br \/>\nhostArpOffload=1<br \/>\n#SoftAP Related Parameters<br \/>\n# AP MAc addr<br \/>\ngAPMacAddr=000AF589dcab<br \/>\n# 802.11n Protection flag<br \/>\ngEnableApProt=1<br \/>\n#Enable OBSS protection<br \/>\ngEnableApOBSSProt=1<br \/>\n#Enable\/Disable UAPSD for SoftAP<br \/>\ngEnableApUapsd=1<br \/>\n# Fixed Rate<br \/>\ngFixedRate=0<br \/>\n# Maximum Tx power<br \/>\n# gTxPowerCap=30<br \/>\n# Fragmentation Threshold<br \/>\n# gFragmentationThreshold=2346<br \/>\n# RTS threshold<br \/>\nRTSThreshold=2347<br \/>\n# Intra-BSS forward<br \/>\ngDisableIntraBssFwd=0<br \/>\n# WMM Enable\/Disable<br \/>\nWmmIsEnabled=0<br \/>\n# 802.11d support<br \/>\ng11dSupportEnabled=0<br \/>\n# CCX Support and fast transition<br \/>\nCcxEnabled=0<br \/>\nFastTransitionEnabled=1<br \/>\nImplicitQosIsEnabled=0<br \/>\ngNeighborScanTimerPeriod=200<br \/>\n# default value of this parameter is zero to enable dynamic threshold allocation<br \/>\n# to set static roming threshold uncomment below parameter and set vaule<br \/>\n#gNeighborLookupThreshold=78<br \/>\ngNeighborScanChannelMinTime=20<br \/>\ngNeighborScanChannelMaxTime=30<br \/>\n# Legacy (non-CCX, non-802.11r) Fast Roaming Support<br \/>\n# To enable, set FastRoamEnabled=1<br \/>\n# To disable, set FastRoamEnabled=0<br \/>\nFastRoamEnabled=1<br \/>\n#Check if the AP to which we are roaming is better than current AP in terms of RSSI.<br \/>\n#Checking is disabled if set to Zero.Otherwise it will use this value as to how better<br \/>\n#the RSSI of the new\/roamable AP should be for roaming<br \/>\nRoamRssiDiff=5<br \/>\n# SAP Country code<br \/>\n# Default Country Code is 2 bytes, 3rd byte is optional indoor or out door.<br \/>\n# Example<br \/>\n# US Indoor, USI<br \/>\n# Korea Outdoor, KRO<br \/>\n# Japan without optional byte, JP<br \/>\n# France without optional byte, FR<br \/>\n#gAPCntryCode=USI<br \/>\n#Short Guard Interval Enable\/disable<br \/>\ngShortGI20Mhz=1<br \/>\ngShortGI40Mhz=1<br \/>\n#Auto Shutdown Value in seconds. A value of 0 means Auto shutoff is disabled<br \/>\ngAPAutoShutOff=0<br \/>\n# SAP auto channel selection configuration<br \/>\n# 0 = disable auto channel selection<br \/>\n# 1 = enable auto channel selection, channel provided by supplicant will be ignored<br \/>\ngApAutoChannelSelection=0<br \/>\n# Listen Energy Detect Mode Configuration<br \/>\n# Valid values 0-128<br \/>\n# 128 means disable Energy Detect feature<br \/>\n# 0-9 are threshold code and 7 is recommended value from system if feature is to be enabled.<br \/>\n# 10-128 are reserved.<br \/>\n# The EDET threshold mapping is as follows in 3dB step:<br \/>\n# 0 = -60 dBm<br \/>\n# 1 = -63 dBm<br \/>\n# 2 = -66 dBm<br \/>\n# ...<br \/>\n# 7 = -81 dBm<br \/>\n# 8 = -84 dBm<br \/>\n# 9 = -87 dBm<br \/>\n# Note: Any of these settings are valid. Setting 0 would yield the highest power saving (in a noisy environment) at the cost of more range. The range impact is approximately #calculated as:<br \/>\n#<br \/>\n# Range Loss (dB) = EDET threshold level (dBm) + 97 dBm.<br \/>\n#<br \/>\ngEnablePhyAgcListenMode=128<br \/>\n#Preferred channel to start BT AMP AP mode (0 means, any channel)<br \/>\nBtAmpPreferredChannel=0<br \/>\n#Preferred band (both or 2.4 only or 5 only)<br \/>\nBandCapability=0<br \/>\n#Beacon Early Termination (1 = enable the BET feature, 0 = disable)<br \/>\nenableBeaconEarlyTermination=1<br \/>\nbeaconEarlyTerminationWakeInterval=11<br \/>\n#Bluetooth Alternate Mac Phy (1 = enable the BT AMP feature, 0 = disable)<br \/>\ngEnableBtAmp=0<br \/>\n#SOFTAP Channel Range selection<br \/>\ngAPChannelSelectStartChannel=1<br \/>\ngAPChannelSelectEndChannel=11<br \/>\n#SOFTAP Channel Range selection Operating band<br \/>\n# 0:2.4GHZ 1: LOW-5GHZ 2:MID-5GHZ 3:HIGH-5GHZ 4: 4.9HZ BAND<br \/>\ngAPChannelSelectOperatingBand=0<br \/>\n#Channel Bonding<br \/>\ngChannelBondingMode2.4GHz=1<br \/>\ngChannelBondingMode5GHz=1<br \/>\ngEnableModulatedDTIM = 3<br \/>\ngMaxLIModulatedDTIM = 3<br \/>\ngEnableDatainactivity = 200<br \/>\n#Enable Keep alive with non-zero period value<br \/>\ngStaKeepAlivePeriod=30<br \/>\n#Say gGoKeepAlivePeriod(5 seconds) and gGoLinkMonitorPeriod(10 seconds).<br \/>\n#For every 10 seconds DUT sends Qos Null frame(i.e., Keep Alive frame if link is idle for last 10 seconds.)<br \/>\n#For both active and power save clients.<br \/>\n#Power save clients: DUT set TIM bit from 10th second onwards and till client honors TIM bit.<br \/>\n#If doesn't honor for 5 seconds then Driver remove client.<br \/>\n#Active clients: DUT send Qos Null frame for 10th seconds onwards if it is not success still DUT try on<br \/>\n#11th second if not tries on 12th and so on till 15th second. Hence before disconnection DUT will send 5 NULL frames.<br \/>\n#Hence in any case DUT will detect client got removed in (10+5) seconds. i.e., (gGoKeepAlivePeriod +gGoLinkMonitorPeriod)..<br \/>\n#gGoLinkMonitorPeriod\/ gApLinkMonitorPeriod is period where link is idle and it is period<br \/>\n#where we send NULL frame.<br \/>\n#gApLinkMonitorPeriod = 10<br \/>\n#gGoLinkMonitorPeriod = 10<br \/>\n#gGoKeepAlivePeriod\/gApKeepAlivePeriod is time to spend to check whether frame are succeed to send or not.<br \/>\n#Hence total effective detection time is gGoLinkMonitorPeriod+ gGoKeepAlivePeriod\/gApLinkMonitorPeriod+ gApKeepAlivePeriod.<br \/>\ngGoKeepAlivePeriod = 10<br \/>\ngApKeepAlivePeriod = 30<br \/>\n#If set will start with active scan after driver load, otherwise will start with<br \/>\n#passive scan to find out the domain<br \/>\n#gEnableBypass11d=1<br \/>\n#If set to 0, will not scan DFS channels<br \/>\ngEnableDFSChnlScan=1<br \/>\ngEnableLogp=1<br \/>\n# Enable Automatic Tx Power control<br \/>\ngEnableAutomaticTxPowerControl=1<br \/>\n# 0 for OLPC 1 for CLPC and SCPC<br \/>\ngEnableCloseLoop=1<br \/>\n#Data Inactivity Timeout when in powersave (in ms)<br \/>\ngDataInactivityTimeout=200<br \/>\ngEnableLpwrImgTransition=1<br \/>\n# Scan Timing Parameters<br \/>\n# gPassiveMaxChannelTime=110<br \/>\n# gPassiveMinChannelTime=60<br \/>\n# Enable Tx LDPC<br \/>\n#gTxLdpcEnable = 1 for HT mode, 2 for VHT mode,3 for both HT and VHT<br \/>\ngTxLdpcEnable=3<br \/>\n# gActiveMaxChannelTime=40<br \/>\n# gActiveMinChannelTime=20<br \/>\n# Valid values are 2048,4096,8192 and so on<br \/>\n# Please don't use values other than the ones mentioned above<br \/>\ngMaxMediumTime=4096<br \/>\n# 802.11K support<br \/>\ngRrmEnable=1<br \/>\ngRrmOperChanMax=8<br \/>\ngRrmNonOperChanMax=8<br \/>\ngRrmRandIntvl=100<br \/>\n#Scan offload<br \/>\ngEnableDirectedScanOffload=0<br \/>\n#FlexConnect Power Factor<br \/>\n#Default is set to 0 (disable)<br \/>\ngFlexConnectPowerFactor=0<br \/>\ngVhtChannelWidth=2<br \/>\n# VHT Tx\/Rx MCS values<br \/>\n# Valid values are 0,1,2. If commented out, the default value is 0.<br \/>\n# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9<br \/>\ngVhtRxMCS=2<br \/>\ngVhtTxMCS=2<br \/>\n# Enable Tx beamforming<br \/>\ngTxBFEnable=1<br \/>\nEND<br \/>\n# Note: Configuration parser would not read anything past the END marker<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u6790\uff1a \u6d4b\u8bd5\u4e86\u5f88\u591a\u904d\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u89e3\u51b3\u65b9\u6848\uff0c\u4e3b\u8981\u539f\u56e0\u8fd8\u662fWiFi\u56fd\u5bb6\u4ee3\u7801\u7684\u95ee\u9898\u3002 12\u4fe1\u9053\u641c\u4e0d\u5230\u7684\u65f6\u5019\uff0c\u7528\u547d\u4ee4#...<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17266],"tags":[],"class_list":["post-6615","post","type-post","status-publish","format-standard","hentry","category-17266"],"_links":{"self":[{"href":"https:\/\/ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/6615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ivan.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ivan.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ivan.xin\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6615"}],"version-history":[{"count":9,"href":"https:\/\/ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/6615\/revisions"}],"predecessor-version":[{"id":6618,"href":"https:\/\/ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/6615\/revisions\/6618"}],"wp:attachment":[{"href":"https:\/\/ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}