<?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>Using Whitelist with undirected advertising returns NRF_ERROR_INVALID_PARAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41087/using-whitelist-with-undirected-advertising-returns-nrf_error_invalid_param</link><description>Hi, 
 after migrating from SDK12 with Softdevice3 to SDK15 with Softdevice6 we noticed a strange error. 
 When setting the advertising parameters to use anything other than BLE_GAP_ADV_FP_ANY together with either BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Dec 2018 10:13:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41087/using-whitelist-with-undirected-advertising-returns-nrf_error_invalid_param" /><item><title>RE: Using Whitelist with undirected advertising returns NRF_ERROR_INVALID_PARAM</title><link>https://devzone.nordicsemi.com/thread/160161?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 10:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e9232b8-b347-47d6-8fc0-058f7183736a</guid><dc:creator>Niclas Heitz</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;it seems we had a slight error in our test, so that the whitelist was indeed not set correctly. I assume the previous SD didn&amp;#39;t had the &amp;quot;!whitelist&amp;quot; check since the test worked there.&lt;/p&gt;
&lt;p&gt;Anyway, thank you for your help it made the behaviour much more understandable.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Niclas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Whitelist with undirected advertising returns NRF_ERROR_INVALID_PARAM</title><link>https://devzone.nordicsemi.com/thread/160117?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 07:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e73270ea-6e8b-42ed-ba03-7492d8836e3d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Niclas,&lt;/p&gt;
&lt;p&gt;The reason is that if you use anything other than&amp;nbsp;BLE_GAP_ADV_FP_ANY, you need a filtering method, either whitelist or directed advertising.&amp;nbsp;The check in the SD is similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (!direct_advertising &amp;amp;&amp;amp;
    filter_policy != BLE_GAP_ADV_FP_ANY &amp;amp;&amp;amp;
    !whitelist)
{
    return NRF_ERROR_INVALID_PARAM;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;suggested ot the SoftDevice developers that the API documentation should be updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Whitelist with undirected advertising returns NRF_ERROR_INVALID_PARAM</title><link>https://devzone.nordicsemi.com/thread/160034?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 15:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d13095a-e341-4108-84d9-58d0fb9c8647</guid><dc:creator>Niclas Heitz</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;yes we configuered a whitelist, as i said in my OP we use pm_whitelist_set() to configure it. This seems to work with our old firmware using SDK12.&amp;nbsp; I will try to verify that the whitelist is actually set but at least the function returns success.&lt;/p&gt;
&lt;p&gt;Was there no check if the whitelist is set in the old function? Otherwise I can&amp;#39;t explain why it was working since the parameters given where the same.&lt;/p&gt;
&lt;p&gt;Also why is it working with BLE_GAP_ADV_TYPE_CONNECTABLE_NONSCANNABLE_DIRECTED? Is the filter policy ignored for direct advertising? It would make sense, but there&amp;#39;s nothing in the documentation.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Niclas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Whitelist with undirected advertising returns NRF_ERROR_INVALID_PARAM</title><link>https://devzone.nordicsemi.com/thread/159978?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 13:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2152609b-4e96-4ec2-9cd4-0dd0b299ab4c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Niclas&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Have you configured a whitelist &lt;em&gt;before&lt;/em&gt; the call to &lt;a href="https://www.nordicsemi.com/DocLib/Content/SoftDevice_API_Doc/S132/v6-1-0/group_ble_gap_functions?661#ga9969047f4e7485c3f856c841978cc31a"&gt;&lt;code&gt;sd_ble_gap_adv_set_configure()&lt;/code&gt;&lt;/a&gt;? You will get&amp;nbsp;NRF_ERROR_INVALID_PARAM from sd_ble_gap_adv_set_configure() if you use anything other than&amp;nbsp;BLE_GAP_ADV_FP_ANY when no whitelist is set. This makes sense, as there is nothing to filter on without a whitelist, but I agree that it should have been stated in the API documentation. I will create an internal ticket suggesting that the API documentation is updated.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>