diff --git a/qml/ui/configpopup/openhd_settings/PopupTxPowerEditor.qml b/qml/ui/configpopup/openhd_settings/PopupTxPowerEditor.qml index 546e80e2d..37d5995e6 100644 --- a/qml/ui/configpopup/openhd_settings/PopupTxPowerEditor.qml +++ b/qml/ui/configpopup/openhd_settings/PopupTxPowerEditor.qml @@ -113,6 +113,12 @@ PopupBigGeneric{ ListElement {title: "LB-Link [RTL88XXEU]"; value: 0} ListElement {title: "OpenHD [RTL88XXEU]"; value: 1} ListElement {title: "OTHER [RTL88XXEU]"; value: 2} + } + ListModel{ + id: model_qualcomm_manufacturers + ListElement {title: "Please Select"; value: -1} + ListElement {title: "Coretronic"; value: 0} + ListElement {title: "OTHER"; value: 1} } function get_model_manufacturer_for_chip_type(){ @@ -123,6 +129,8 @@ PopupBigGeneric{ return model_rtl8812bu_manufacturers; }else if(chip_type==3){ return model_rtl8812eu_manufacturers; + }else if(chip_type==4){ + return model_qualcomm_manufacturers; } return model_manufacturer_unknown_chipset; } @@ -189,9 +197,12 @@ PopupBigGeneric{ ListModel{ id: model_rtl8812eu_manufacturer_lb_link ListElement {title: "Please select"; value: -1} - ListElement {title: "~300mW"; value: 25} - ListElement {title: "~800mW"; value: 100} - ListElement {title: "~1000mW"; value: 200} + ListElement {title: "~25mW"; value: 25} + ListElement {title: "~100mW"; value: 100} + ListElement {title: "~300mW"; value: 300} + ListElement {title: "~500mW"; value: 500} + ListElement {title: "~800mW"; value: 800} + ListElement {title: "~1000mW"; value: 1000} } ListModel{ id: model_rtl8812eu_manufacturer_openhd @@ -207,6 +218,39 @@ PopupBigGeneric{ ListElement {title: "~800mW"; value: 100} ListElement {title: "~1000mW"; value: 200} } + //RTL8812EU begin + ListModel{ + id: model_rtl8812eu_manufacturer_lb_link + ListElement {title: "Please select"; value: -1} + ListElement {title: "~25mW"; value: 25} + ListElement {title: "~100mW"; value: 100} + ListElement {title: "~300mW"; value: 300} + ListElement {title: "~500mW"; value: 500} + ListElement {title: "~800mW"; value: 800} + ListElement {title: "~1000mW"; value: 1000} + } + ListModel{ + id: model_rtl8812eu_manufacturer_openhd + ListElement {title: "Please select"; value: -1} + ListElement {title: "~300mW"; value: 25} + ListElement {title: "~800mW"; value: 100} + ListElement {title: "~1000mW"; value: 200} + } + //QUALCOMM begin + ListModel{ + id: model_qualcomm_manufacturer_coretronic + ListElement {title: "Please select"; value: -1} + ListElement {title: "~30mw"; value: 30} + ListElement {title: "~100mW"; value: 100} + ListElement {title: "~200mW"; value: 200} + } + ListModel{ + id: model_qualcomm_manufacturer_generic + ListElement {title: "Please select"; value: -1} + ListElement {title: "~30mw"; value: 30} + ListElement {title: "~100mW"; value: 100} + ListElement {title: "~200mW"; value: 200} + } // Such that we can copy and add the extra value for "NOT ENABLED" ListModel{ @@ -249,6 +293,13 @@ PopupBigGeneric{ }else { ret = model_rtl8812eu_manufacturer_generic; } + }else if(chip_type==4){ + // QUALCOMM + if(manufacturer==0){ + ret= model_qualcomm_manufacturer_coretronic; + }else { + ret = model_qualcomm_manufacturer_generic; + } }else{ ret = model_error; }