60 #ifdef CSR_SUPPORT_WEXT
70 "CsrWifiSmeMicFailureIndSend: count=%d, KeyType=%d\n",
80 #ifdef CSR_SUPPORT_WEXT
101 #ifdef CSR_SUPPORT_WEXT
106 if (priv->smepriv ==
NULL) {
107 unifi_error(priv,
"CsrWifiSmePmkidCandidateListIndSend: invalid smepriv\n");
124 #ifdef CSR_SUPPORT_WEXT
133 unifi_error(
NULL,
"CsrWifiSmeScanResultsGetCfmSend: Invalid ospriv.\n");
158 priv->sme_reply.reply_scan_results = scanCopy;
167 #ifdef CSR_SUPPORT_WEXT
189 #ifdef CSR_SUPPORT_WEXT
205 #ifdef CSR_SUPPORT_WEXT
221 #ifdef CSR_SUPPORT_WEXT
237 #ifdef CSR_SUPPORT_WEXT
242 unifi_error(
NULL,
"CsrWifiSmeMulticastAddressCfmSend: Invalid ospriv.\n");
252 #ifdef CSR_SUPPORT_WEXT
257 unifi_error(
NULL,
"CsrWifiSmeWifiFlightmodeCfmSend: Invalid ospriv.\n");
267 #ifdef CSR_SUPPORT_WEXT
277 "CsrWifiSmeWifiOnCfmSend: wake up status %d\n", cfm->
status);
278 #ifdef CSR_SUPPORT_WEXT_AP
287 #ifdef CSR_SUPPORT_WEXT
303 #ifdef CSR_SUPPORT_WEXT
308 unifi_error(
NULL,
"CsrWifiRouterCtrlStoppedReqSend: Invalid ospriv.\n");
312 if (priv->smepriv ==
NULL) {
313 unifi_error(priv,
"CsrWifiRouterCtrlStoppedReqSend: invalid smepriv\n");
324 "CsrWifiRouterCtrlStoppedReqSend: Restarting SME (ind:%d)\n",
331 #ifdef CSR_SUPPORT_WEXT_AP
344 #ifdef CSR_SUPPORT_WEXT
353 priv->sme_reply.versions = cfm->
versions;
364 unifi_error(
NULL,
"CsrWifiSmePowerConfigGetCfmSend: Invalid ospriv.\n");
378 unifi_error(
NULL,
"CsrWifiSmeHostConfigGetCfmSend: Invalid ospriv.\n");
396 priv->sme_reply.coexInfo = cfm->
coexInfo;
402 #ifdef CSR_SUPPORT_WEXT
407 unifi_error(
NULL,
"CsrWifiSmeCoexConfigGetCfmSend: Invalid ospriv.\n");
418 #ifdef CSR_SUPPORT_WEXT
427 priv->sme_reply.mibConfig = cfm->
mibConfig;
434 #ifdef CSR_SUPPORT_WEXT
439 unifi_error(
NULL,
"CsrWifiSmeConnectionInfoGetCfmSend: Invalid ospriv.\n");
450 #ifdef CSR_SUPPORT_WEXT
455 unifi_error(
NULL,
"CsrWifiSmeConnectionConfigGetCfmSend: Invalid ospriv.\n");
466 #ifdef CSR_SUPPORT_WEXT
471 unifi_error(
NULL,
"CsrWifiSmeConnectionStatsGetCfmSend: Invalid ospriv.\n");
482 #ifdef CSR_SUPPORT_WEXT
497 #ifdef CSR_SUPPORT_WEXT
507 unifi_error(priv,
"CsrWifiSmeMibGetCfmSend: Empty reply.\n");
518 "CsrWifiSmeMibGetCfmSend: No room to store MIB data (have=%d need=%d).\n",
528 #ifdef CSR_SUPPORT_WEXT
544 #ifdef CSR_SUPPORT_WEXT
547 int signal, noise,
snr;
550 unifi_error(
NULL,
"CsrWifiSmeConnectionQualityIndSend: Invalid ospriv.\n");
563 snr = (snr < 255) ? snr : 255;
564 noise = signal -
snr;
567 signal = (signal < 63) ? signal : 63;
568 signal = (signal > -192) ? signal : -192;
571 noise = (noise < 63) ? noise : 63;
572 noise = (noise > -192) ? noise : -192;
575 signal = ( signal < 0 ) ? signal + 0x100 : signal;
576 noise = ( noise < 0 ) ? noise + 0x100 : noise;
578 priv->wext_wireless_stats.qual.level = (
u8)signal;
579 priv->wext_wireless_stats.qual.noise = (
u8)noise;
580 priv->wext_wireless_stats.qual.qual =
snr;
581 priv->wext_wireless_stats.qual.updated = 0;
583 #if WIRELESS_EXT > 16
587 #if WIRELESS_EXT > 18
588 priv->wext_wireless_stats.qual.updated |=
IW_QUAL_DBM;
599 unifi_error(
NULL,
"CsrWifiSmePacketFilterSetCfmSend: Invalid ospriv.\n");
672 #ifdef CSR_SUPPORT_WEXT
691 #ifdef CSR_SUPPORT_WEXT
710 #ifdef CSR_SUPPORT_WEXT
729 #ifdef CSR_SUPPORT_WEXT
745 #ifdef CSR_SUPPORT_WEXT
778 #ifdef CSR_SUPPORT_WEXT
818 #ifdef CSR_SUPPORT_WEXT
822 if (priv->smepriv ==
NULL) {
823 unifi_error(priv,
"CsrWifiSmeMediaStatusIndSend: invalid smepriv\n");
862 unifi_error(
NULL,
"CsrWifiSmeRoamingConfigSetCfmSend: Invalid ospriv.\n");
875 #ifdef CSR_SUPPORT_WEXT
898 unifi_error(
NULL,
"CsrWifiSmeSmeCommonConfigGetCfmSend: Invalid ospriv.\n");
912 unifi_error(
NULL,
"CsrWifiSmeSmeStaConfigGetCfmSend: Invalid ospriv.\n");
916 priv->sme_reply.staConfig = cfm->
smeConfig;
926 unifi_error(
NULL,
"CsrWifiSmeSmeCommonConfigGetCfmSend: Invalid ospriv.\n");
939 unifi_error(
NULL,
"CsrWifiSmeSmeStaConfigGetCfmSend: Invalid ospriv.\n");
972 #ifdef CSR_SUPPORT_WEXT
973 #ifdef CSR_SUPPORT_WEXT_AP