diff --git a/wireless/wapi/src/driver_wext.c b/wireless/wapi/src/driver_wext.c index 6f473eca9..c4fbe147f 100644 --- a/wireless/wapi/src/driver_wext.c +++ b/wireless/wapi/src/driver_wext.c @@ -6,8 +6,8 @@ * Author: Simon Piriou * Gregory Nutt * - * Adapted for NuttX from the driver_ext.c of WPA suplicant written originally - * by Jouni Malinen + * Adapted for NuttX from the driver_ext.c of WPA suplicant written + * originally by Jouni Malinen * * Copyright (c) 2003-2015, Jouni Malinen * @@ -41,10 +41,11 @@ ****************************************************************************/ /* This file implements a driver interface for the Linux Wireless Extensions. - * When used with WE-18 or newer, this interface can be used as-is with number - * of drivers. In addition to this, some of the common functions in this file - * can be used by other driver interface implementations that use generic WE - * ioctls, but require private ioctls for some of the functionality. + * When used with WE-18 or newer, this interface can be used as-is with + * number of drivers. In addition to this, some of the common functions + * in this file can be used by other driver interface implementations that + * use generic WE ioctls, but require private ioctls for some of the + * functionality. */ /**************************************************************************** @@ -443,7 +444,8 @@ void wpa_driver_wext_disconnect(int sockfd, FAR const char *ifname) ssid[i] = rand() & 0xff; } - if (wapi_set_essid(sockfd, ifname, (FAR const char *)ssid, WAPI_ESSID_OFF) < 0) + if (wapi_set_essid(sockfd, ifname, + (FAR const char *)ssid, WAPI_ESSID_OFF) < 0) { nerr("WEXT: Failed to set bogus " "SSID to disconnect\n"); } diff --git a/wireless/wapi/src/util.c b/wireless/wapi/src/util.c index 2a5125742..33008cc22 100644 --- a/wireless/wapi/src/util.c +++ b/wireless/wapi/src/util.c @@ -10,10 +10,11 @@ * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following conditions + * are met: * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the diff --git a/wireless/wapi/src/wapi.c b/wireless/wapi/src/wapi.c index eb7ebc78f..c5dc08593 100644 --- a/wireless/wapi/src/wapi.c +++ b/wireless/wapi/src/wapi.c @@ -11,10 +11,11 @@ * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following conditions + * are met: * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the diff --git a/wireless/wapi/src/wireless.c b/wireless/wapi/src/wireless.c index ecb9ffba4..f41c3bcdf 100644 --- a/wireless/wapi/src/wireless.c +++ b/wireless/wapi/src/wireless.c @@ -10,10 +10,11 @@ * All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following conditions are + * met: * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the @@ -151,7 +152,8 @@ static inline double wapi_freq2float(const struct iw_freq *freq) * Name: wapi_float2freq * * Description: - * Converts a floating point the our internal representation of frequencies. + * Converts a floating point the our internal representation of + * frequencies. * ****************************************************************************/ @@ -1061,7 +1063,8 @@ int wapi_get_txpower(int sock, FAR const char *ifname, FAR int *power, { *flag = WAPI_TXPOWER_MWATT; } - else if (IW_TXPOW_RELATIVE == (wrq.u.txpower.flags & IW_TXPOW_RELATIVE)) + else if (IW_TXPOW_RELATIVE == + (wrq.u.txpower.flags & IW_TXPOW_RELATIVE)) { *flag = WAPI_TXPOWER_RELATIVE; }