Description:

This add-in adds a Wifi 7 encryption profile to Wifi 7 access points to be used in a new or existing SSID. This enables Wifi 7 certified operation

Add-in Code:

**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {
    if (context.device.type.indexOf("LX-7") >= 0 || context.device.type.indexOf("LW-7") >= 0) {
        // Change an existing SSID to certified WiFi7 operation
        var changeSSID = function (SSID) {
            config.getTableByOid("13.2.20.1")
                .getFirstRowByOid("2", SSID)
                .setByOid("102", "P-PSK-WiFi7")
        }



        // Function to create an SSID with certified WiFi7 operation
        var createSSID = function (Network, SSID, PSK, Radios, VLAN) {
            var createSSIDtable = config.getTableByOid("13.2.20.1");
            var createSSIDrow;
            createSSIDrow = createSSIDtable.createNewRow();
            createSSIDrow.setByOid("1", Network); // Network-Name
            createSSIDrow.setByOid("2", SSID); // SSID-Name
            createSSIDrow.setByOid("100", PSK); // Key (PSK)
            createSSIDrow.setByOid("101", Radios); // Radios
            createSSIDrow.setByOid("102", "P-PSK-WiFi7"); // Encryption-Profile
            createSSIDrow.setByOid("200", VLAN); // VLAN-ID
            createSSIDtable.addOrMerge(createSSIDrow);
        }
        // Add WiFi7 Encryption Profile for certified operation
        var encr_table = config.getTableByOid("13.2.20.3");
        var encr_row;
        encr_row = encr_table.createNewRow();
        encr_row.setByOid("1", "P-PSK-WiFi7"); // Profile-Name
        encr_row.setByOid("2", "1"); // Encryption
        encr_row.setByOid("4", "32"); // Method
        encr_row.setByOid("9", "8"); // WPA-Version
        encr_row.enableBitByOidAtPos("13", "1"); // AES-CCMP-128
        encr_row.enableBitByOidAtPos("13", "4"); // AES-GCMP-256
        encr_row.setByOid("27", "3"); // Group-Mgmt-Cipher
        encr_row.setByOid("14", "2"); // Encrypt management frames
        encr_row.setByOid("15", "1"); // Beacon protection
        encr_row.setByOid("16", "1"); // Pre-Authentication
        encr_row.setByOid("17", "1"); // OKC
        encr_row.enableBitByOidAtPos("26", "19"); // DH-19
        encr_row.enableBitByOidAtPos("26", "20"); // DH-20
        encr_row.enableBitByOidAtPos("26", "21"); // DH-21
        encr_table.addOrMerge(encr_row);
       
        /*Call the required functions if you want to change an existing SSID, or create a new one
        Example for both:
        changeSSID("SSID") - enter the SSID that you want changed
        createSSID("Network", "SSID", "PSK", "Radios", "VLAN" )
        Options for Radios (enter the number):
        2.4GHz+5GHz (1), 2.4GHz (2), 5GHz (3), none (4), 2.4GHz+5GHz+6GHz (5), 2.4GHz+6GHz (6), 5GHz+6GHz (7), 6GHz (8)
        */
    }
};

Add-in as JSON file:

WiFi7-Encryption.json