Re: [PATCH BlueZ 2/3] mesh: Clean up node.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Inga,

On 12/06, Inga Stotland wrote:
> @@ -876,8 +902,6 @@ uint16_t node_generate_comp(struct mesh_node *node, uint8_t *buf, uint16_t sz)
>  {
>  	uint16_t n, features;
>  	uint16_t num_ele = 0;
> -	uint8_t *cfgmod_idx = NULL;
> -
>  	const struct l_queue_entry *ele_entry;
>  
>  	if (!node || !node->comp || sz < MIN_COMP_SIZE)
> @@ -940,9 +964,6 @@ uint16_t node_generate_comp(struct mesh_node *node, uint8_t *buf, uint16_t sz)
>  			mod_id = mesh_model_get_model_id(
>  					(const struct mesh_model *) mod);
>  
> -			if (mod_id == CONFIG_SRV_MODEL)
> -				cfgmod_idx = &ele->idx;
> -
>  			if ((mod_id & VENDOR_ID_MASK) == VENDOR_ID_MASK) {
>  				if (n + 2 > sz)
>  					goto element_done;
> @@ -988,9 +1009,6 @@ element_done:
>  	if (!num_ele)
>  		return 0;
>  
> -	if (!cfgmod_idx || *cfgmod_idx != PRIMARY_ELE_IDX)
> -		return 0;
> -
>  	return n;
>  }

Note that this cause the daemon to no longer reject applications that
declare presence of Config Server Model on non-primary element.

-- 
Michał Lowas-Rzechonek <michal.lowas-rzechonek@xxxxxxxxxxx>
Silvair http://silvair.com
Jasnogórska 44, 31-358 Krakow, POLAND



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux