예제 #1
0
        private Link_Param HandleLinkParam80211Parameter(Link_Param_Type linkParamType)
        {
            Link_Param linkParam = new Link_Param();

            linkParam.LinkParamType = linkParamType;

            switch (linkParamType.SubType)
            {
            case (int)LINK_PARAM_802_11_SUBTYPES.MulticastPacketLossRate:
            {
                linkParam.LinkParamVal = Information.Link_Param_802_11.GetMulticastPacketLossrate_2;
                break;
            }

            case (int)LINK_PARAM_802_11_SUBTYPES.RSSI:
            {
                linkParam.LinkParamVal = Information.Link_Param_802_11.GetRSSI_0;
                break;
            }

            case (int)LINK_PARAM_802_11_SUBTYPES.NoQoS:
            {
                linkParam.LinkParamVal = 0;
                break;
            }
            }

            return(linkParam);
        }
예제 #2
0
        private static Link_Parameters_Report reportBuilder(ushort subType, ushort value)
        {
            //Link Identification Information
            Link_Addr     linkAddr     = new Link_Addr(Link_Addr.Address_Type.MAC_ADDR, Information.GenericInfo.PhysicalAddress.ToString());
            Link_Id       linkId       = new Link_Id(linkType, linkAddr);
            Link_Tuple_Id linkTuppleId = new Link_Tuple_Id(linkId, linkAddr);
            Link_Tuple_Id nicTupple    = new Link_Tuple_Id(linkId, linkAddr);

            //Specified Parameter information and report building
            List <Link_Param_Rpt> paramsList    = new List <Link_Param_Rpt>();
            Link_Param_Type       linkParamType = new Link_Param_Type(Link_Param_Types.LINK_PARAM_GEN, subType);
            Link_Param            linkParam     = new Link_Param(linkParamType, value);
            Link_Param_Rpt        reportSingle  = new Link_Param_Rpt(linkParam, null);

            paramsList.Add(reportSingle);
            return(new Link_Parameters_Report(nicTupple, paramsList));
        }
예제 #3
0
        private Link_Param HandleLinkParamGenParameter(Link_Param_Type linkParamType)
        {
            Link_Param linkParam = new Link_Param();

            linkParam.LinkParamType = linkParamType;

            switch (linkParamType.SubType)
            {
            case (int)LINK_PARAM_GEN_SUBTYPES.DataRate:
            {
                linkParam.LinkParamVal = Information.Link_Param_Gen.DataRate_0;
                break;
            }

            case (int)LINK_PARAM_GEN_SUBTYPES.PacketErrorRate:
            {
                linkParam.LinkParamVal = Information.Link_Param_Gen.PacketErrorRate_4;
                break;
            }

            case (int)LINK_PARAM_GEN_SUBTYPES.SignalStrength:
            {
                linkParam.LinkParamVal = Information.Link_Param_Gen.SignalStrength_1;
                break;
            }

            case (int)LINK_PARAM_GEN_SUBTYPES.SINR:
            {
                linkParam.LinkParamVal = Information.Link_Param_Gen.SINR_2;
                break;
            }

            case (int)LINK_PARAM_GEN_SUBTYPES.Throughtput:
            {
                linkParam.LinkParamVal = Information.Link_Param_Gen.Throughput_3;
                break;
            }
            }

            return(linkParam);
        }