Is it possible to set transmit power?

Hi,

As title says - Trying to find out if it it is possible to set transmit power.

Using this SDK: GitHub - ambiot/ambd_sdk: Release SDK for AmebaD
Hardware is using NORA-W30 module with RTL872xD chip.

Looking at this file: ambd_sdk/component/common/api/wifi/wifi_util.c at dev · ambiot/ambd_sdk · GitHub , seems function is there but it is commented out with #if 0 MACRO:

#if 0
int wext_set_txpower(const char *ifname, int poweridx)
{
	int ret = 0;
	char buf[24];
	
	rtw_memset(buf, 0, sizeof(buf));
	snprintf(buf, 24, "txpower patha=%d", poweridx);
	ret = wext_private_command(ifname, buf, 0);

	return ret;
}

//...

#endif

Has anyone tried uncommenting and calling this function?

If yes, what are the values power indexes “powerIdx“ and how to map to actual power value in dBm?

Thanks,

Ivan S.