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

[bluetooth-dev] READ_TRANSMIT_POWER_LEVEL..!



Sir,
     As adviced,I added the following code for reading
power in the l2cap.c and it worked.But unfortunately,
the max power always seems to be 0 dbm (LEVEL 1).
      I varied the MaxPowerTransmit in bt.conf from
1-7 and restarted the stack,but I did not see any
change.
     What could be the reason??Hope to hear from you
regarding this.(I hope this is CSR hardware,because
btconfig checks only for CSR and while compiling I
enabled CSR flag)

process_return_param: READ_TRANSMIT_POWER_LEVEL
BT SYS: READ_TRANSMIT_POWER_LEVEL: handle 40, 0 dBm
BT SYS: l2ca_connect_req:::::
READ_POWER_TRANSMIT_LEVEL : 1

L2CAP.C
tmp = get_con_hdl(rev_bd)       ;
if(tmp < 0){
D_ERR(__FUNCTION__ ": No connection handle found for
bd
0x%02x:%02x:%02x:%02x:%02x:%02x:\n", bd[5], bd[4],
bd[3], bd[2], bd[1], bd[0]);
 } else {
t_param[2] = 0x00;
t_type = t_param[2];
t_result =    hci_read_power_transmit_level(tmp,
t_type);
t_param[0] = (0x0ff&t_result);
                        t_param[1] =
0x0ff&(t_result>>8);
                        DSYS(__FUNCTION__ ":::::
READ_POWER_TRANSMIT_LEVEL : %x\n\n",t_param[1]);

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com