I revised the patch according to your comments and resend.
Compared with last version the change is:
1 fix the bug that HFP AG can't initiate the service-level connection
with HFP HF unit.
2 more coding style fix
3 rebase the patch set against the BlueZ master