<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>bt_hci_cmd_send_sync() failure when changing txpower, error -5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108552/bt_hci_cmd_send_sync-failure-when-changing-txpower-error--5</link><description>This is similar to issues others have experienced in the past, yet the solutions from those threads aren&amp;#39;t working for me. 
 As per guidance from other threads, I have both of these enabled: CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y CONFIG_BT_HCI_VS_EXT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Feb 2024 14:02:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108552/bt_hci_cmd_send_sync-failure-when-changing-txpower-error--5" /><item><title>RE: bt_hci_cmd_send_sync() failure when changing txpower, error -5</title><link>https://devzone.nordicsemi.com/thread/470285?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 14:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95cf3e62-fa8f-4806-af2f-0791230daded</guid><dc:creator>cal.rubbo</dc:creator><description>&lt;p&gt;Turns out the example code I was using was from an old project, and I wasn&amp;#39;t passing the handle type and handle correctly!&lt;/p&gt;
&lt;p&gt;Copying the set_tx_power() function from this example project worked!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/bluetooth/hci_pwr_ctrl/src/main.c"&gt;github.com/.../main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>