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

Periodin Inquiry problem!



Hi..
   I am sending below periodoc inquiry command to HCI firmaware in ericcsson
kit.
   Instead of sending inquiry command repeatedly after Max Period length.It
is doing it only once as if only   inquiry command is sent.
 Can anybody help me out with this.
Thanx in advance.

            c_pkt.type = CMD_PKT;
	c_pkt.ocf = PERIODIC_INQUIRY_MODE;
	c_pkt.ogf = HCI_LC;
    
	inq_res = (inquiry_results*) kmalloc(sizeof(inquiry_results)
					     + 6 * 5, GFP_ATOMIC);
	inq_res->nbr_of_units = 0;

	//	memcpy(c_pkt.data, lap, 3);
	c_pkt.data[0] =0x00; // Max period length
	c_pkt.data[1] =0x06;
	c_pkt.data[2] =0x00; // Min period length
	c_pkt.data[3] =0x03;
            c_pkt.data[4] =0x33; // LAP 
	c_pkt.data[5] =0x8b;
	c_pkt.data[6] =0x9e;
	c_pkt.data[7] =0x02; // Inquiry _length  
	c_pkt.data[8] =0x01; // No of responses 
	

	c_pkt.len = 9;

	//print_data("hci_inquiry", (u8*) &c_pkt ,c_pkt.len + CMD_HDR_LEN +
HCI_HDR_LEN);

	tmp = send_inq_cmd_block((u8*) &c_pkt ,c_pkt.len + CMD_HDR_LEN +
HCI_HDR_LEN);