]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Fix some coding style issues
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 14 Apr 2014 10:39:18 +0000 (13:39 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 25 Apr 2014 16:27:07 +0000 (19:27 +0300)
Some trailing whitespace and spaces for indentation were present in the
driver wrapper and header files.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver.h
src/drivers/driver_nl80211.c

index 13bf7183dcc1a2ff9720c8114fee36f53fe40bfd..c6898761552f8298e6549e526cceb6ac4e6d5644 100644 (file)
@@ -2164,7 +2164,7 @@ struct wpa_driver_ops {
         * @session_timeout: Session timeout for the station
         * Returns: 0 on success, -1 on failure
         */
-       int (*set_radius_acl_auth)(void *priv, const u8 *mac, int accepted, 
+       int (*set_radius_acl_auth)(void *priv, const u8 *mac, int accepted,
                                   u32 session_timeout);
 
        /**
@@ -2228,7 +2228,7 @@ struct wpa_driver_ops {
         * Returns: 0 on success, -1 on failure
         */
        int (*set_wds_sta)(void *priv, const u8 *addr, int aid, int val,
-                          const char *bridge_ifname, char *ifname_wds);
+                          const char *bridge_ifname, char *ifname_wds);
 
        /**
         * send_action - Transmit an Action frame
@@ -2516,7 +2516,7 @@ struct wpa_driver_ops {
         * signal_poll - Get current connection information
         * @priv: Private driver interface data
         * @signal_info: Connection info structure
-         */
+        */
        int (*signal_poll)(void *priv, struct wpa_signal_info *signal_info);
 
        /**
index b47d63fe061516b504b85e3b29d87aabdf625bfb..7c58f06386378e157d3f47f2b5dec84fc17d4c94 100644 (file)
@@ -537,22 +537,22 @@ static enum chan_width convert2width(int width)
 
 static int is_ap_interface(enum nl80211_iftype nlmode)
 {
-       return (nlmode == NL80211_IFTYPE_AP ||
-               nlmode == NL80211_IFTYPE_P2P_GO);
+       return nlmode == NL80211_IFTYPE_AP ||
+               nlmode == NL80211_IFTYPE_P2P_GO;
 }
 
 
 static int is_sta_interface(enum nl80211_iftype nlmode)
 {
-       return (nlmode == NL80211_IFTYPE_STATION ||
-               nlmode == NL80211_IFTYPE_P2P_CLIENT);
+       return nlmode == NL80211_IFTYPE_STATION ||
+               nlmode == NL80211_IFTYPE_P2P_CLIENT;
 }
 
 
 static int is_p2p_net_interface(enum nl80211_iftype nlmode)
 {
-       return (nlmode == NL80211_IFTYPE_P2P_CLIENT ||
-               nlmode == NL80211_IFTYPE_P2P_GO);
+       return nlmode == NL80211_IFTYPE_P2P_CLIENT ||
+               nlmode == NL80211_IFTYPE_P2P_GO;
 }
 
 
@@ -4523,7 +4523,7 @@ static int nl80211_mgmt_subscribe_ap(struct i802_bss *bss)
  * it isn't per interface ... maybe just dump the scan
  * results periodically for OLBC?
  */
-//             WLAN_FC_STYPE_BEACON,
+               /* WLAN_FC_STYPE_BEACON, */
        };
        unsigned int i;
 
@@ -7842,7 +7842,7 @@ static void handle_monitor_read(int sock, void *eloop_ctx, void *sock_ctx)
                return;
        }
 
-       if (ieee80211_radiotap_iterator_init(&iter, (void*)buf, len, NULL)) {
+       if (ieee80211_radiotap_iterator_init(&iter, (void *) buf, len, NULL)) {
                wpa_printf(MSG_INFO, "nl80211: received invalid radiotap frame");
                return;
        }
@@ -9621,7 +9621,7 @@ static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx)
 
 
 static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val,
-                            const char *bridge_ifname, char *ifname_wds)
+                           const char *bridge_ifname, char *ifname_wds)
 {
        struct i802_bss *bss = priv;
        struct wpa_driver_nl80211_data *drv = bss->drv;