Lines Matching refs:lpn_counter
137 frnd->lpn_counter, frnd->counter, in friend_cred_create()
253 uint16_t lpn_addr, lpn_counter; in bt_mesh_friend_clear() local
268 lpn_counter = sys_be16_to_cpu(msg->lpn_counter); in bt_mesh_friend_clear()
270 LOG_DBG("LPN addr 0x%04x counter 0x%04x", lpn_addr, lpn_counter); in bt_mesh_friend_clear()
284 if (lpn_counter - frnd->lpn_counter > 255) { in bt_mesh_friend_clear()
285 LOG_WRN("LPN Counter out of range (old %u new %u)", frnd->lpn_counter, lpn_counter); in bt_mesh_friend_clear()
292 cfm.lpn_counter = msg->lpn_counter; in bt_mesh_friend_clear()
825 .lpn_counter = sys_cpu_to_be16(frnd->lpn_counter), in send_friend_clear()
873 uint16_t lpn_addr, lpn_counter; in bt_mesh_friend_clear_cfm() local
894 lpn_counter = sys_be16_to_cpu(msg->lpn_counter); in bt_mesh_friend_clear_cfm()
895 if (lpn_counter != frnd->lpn_counter) { in bt_mesh_friend_clear_cfm()
896 LOG_WRN("LPN counter mismatch (0x%04x != 0x%04x)", lpn_counter, frnd->lpn_counter); in bt_mesh_friend_clear_cfm()
1050 frnd->lpn_counter = sys_be16_to_cpu(msg->lpn_counter); in bt_mesh_friend_req()