Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hnakagawa/00ed69f2c1455ed1c936 to your computer and use it in GitHub Desktop.
Save hnakagawa/00ed69f2c1455ed1c936 to your computer and use it in GitHub Desktop.
broadcom wl driver(hybrid-v35_64-nodebug-pcoem-6_30_223_248) porting for 3.16
From 82040520df05810b6c4a4d9584c2f27f2de16a90 Mon Sep 17 00:00:00 2001
From: Hirofumi Nakagawa <nklabs@gmail.com>
Date: Sun, 7 Sep 2014 03:29:53 +0900
Subject: [PATCH] broadcom wl driver(hybrid-v35_64-nodebug-pcoem-6_30_223_248)
porting for 3.16
---
src/wl/sys/wl_cfg80211_hybrid.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
index ea0726f..3e84cc5 100644
--- a/src/wl/sys/wl_cfg80211_hybrid.c
+++ b/src/wl/sys/wl_cfg80211_hybrid.c
@@ -64,7 +64,7 @@ static s32 wl_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_ibss_params *params);
static s32 wl_cfg80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev);
static s32 wl_cfg80211_get_station(struct wiphy *wiphy,
- struct net_device *dev, u8 *mac, struct station_info *sinfo);
+ struct net_device *dev, const u8 *mac, struct station_info *sinfo);
static s32 wl_cfg80211_set_power_mgmt(struct wiphy *wiphy,
struct net_device *dev, bool enabled, s32 timeout);
static int wl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
@@ -1387,7 +1387,7 @@ wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
key_endian_to_host(&key);
params.key_len = (u8) min_t(u8, DOT11_MAX_KEY_SIZE, key.len);
- memcpy(params.key, key.data, params.key_len);
+ memcpy((void*)params.key, key.data, params.key_len);
if ((err = wl_dev_ioctl(dev, WLC_GET_WSEC, &wsec, sizeof(wsec)))) {
return err;
@@ -1423,7 +1423,7 @@ wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
static s32
wl_cfg80211_get_station(struct wiphy *wiphy, struct net_device *dev,
- u8 *mac, struct station_info *sinfo)
+ const u8 *mac, struct station_info *sinfo)
{
struct wl_cfg80211_priv *wl = wiphy_to_wl(wiphy);
scb_val_t scb_val;
@@ -2071,7 +2071,7 @@ wl_notify_connect_status(struct wl_cfg80211_priv *wl, struct net_device *ndev,
wl_get_assoc_ies(wl);
memcpy(&wl->bssid, &e->addr, ETHER_ADDR_LEN);
wl_update_bss_info(wl);
- cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
+ cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, &wl->conf->channel, GFP_KERNEL);
set_bit(WL_STATUS_CONNECTED, &wl->status);
wl->profile->active = true;
}
--
1.8.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment