Fix formatting issues in wifi-direct.h and coding rule issue in test-wifi-direct.c