mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/avm/btscanner/get-read.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -ruN btscanner-1.0/bs_info.c btscanner-1.0-new/bs_info.c
  20. --- btscanner-1.0/bs_info.c 2003-10-14 18:31:10.000000000 +0200
  21. +++ btscanner-1.0-new/bs_info.c 2005-06-09 11:05:00.000000000 +0200
  22. @@ -160,7 +160,7 @@
  23. struct hci_conn_info_req *cr;
  24. struct hci_request rq;
  25. read_rssi_rp rp_rssi;
  26. - get_link_quality_rp rp_lq;
  27. + read_link_quality_rp rp_lq;
  28. int err = 0;
  29. int leave = 0;;
  30. @@ -292,11 +292,11 @@
  31. memset(&rq, 0, sizeof(rq));
  32. memset(&rp_lq, 0, sizeof(rp_lq));
  33. rq.ogf = OGF_STATUS_PARAM;
  34. - rq.ocf = OCF_GET_LINK_QUALITY;
  35. + rq.ocf = OCF_READ_LINK_QUALITY;
  36. rq.cparam = &handle;
  37. rq.clen = 2;
  38. rq.rparam = &rp_lq;
  39. - rq.rlen = GET_LINK_QUALITY_RP_SIZE;
  40. + rq.rlen = READ_LINK_QUALITY_RP_SIZE;
  41. if (hci_send_req(dd, &rq, 100) < 0) {
  42. p->lq_status = (uint8_t)-1;