Skip to content

Commit

Permalink
change(bt/bluedroid): Some minor changes in bluedroid
Browse files Browse the repository at this point in the history
- Increase the number of BTM security records for services
- Fix a coding style issue in OBEX and GOEP
  • Loading branch information
esp-lrh committed Dec 20, 2024
1 parent a03527e commit d679115
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@

/* The number of security records for services. 32 AS Default*/
#ifndef BTM_SEC_MAX_SERVICE_RECORDS
#define BTM_SEC_MAX_SERVICE_RECORDS 8 // 32
#define BTM_SEC_MAX_SERVICE_RECORDS 32
#endif

/* If True, force a retrieval of remote device name for each bond in case it's changed */
Expand Down
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/stack/goep/goepc_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ UINT16 GOEPC_RequestAddHeader(UINT16 handle, UINT8 header_id, const UINT8 *data,
break;
}

if ((data == NULL) ^ (data_len == 0)) {
if ((data == NULL && data_len != 0) || (data != NULL && data_len == 0)) {
ret = GOEP_INVALID_PARAM;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/stack/obex/obex_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ UINT16 OBEX_AppendHeaderRaw(BT_HDR *pkt, UINT8 header_id, const UINT8 *data, UIN
return OBEX_INVALID_PARAM;
}

if ((data == NULL) ^ (data_len == 0)) {
if ((data == NULL && data_len != 0) || (data != NULL && data_len == 0)) {
return OBEX_INVALID_PARAM;
}

Expand Down

0 comments on commit d679115

Please sign in to comment.