lkml.org 
[lkml]   [2018]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.2 111/140] cfg80211: fix station info handling bugs
    3.2.100-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Johannes Berg <johannes.berg@intel.com>

    commit 5762d7d3eda25c03cc2d9d45227be3f5ab6bec9e upstream.

    Fix two places where the structure isn't initialized to zero,
    and thus can't be filled properly by the driver.

    Fixes: 4a4b8169501b ("cfg80211: Accept multiple RSSI thresholds for CQM")
    Fixes: 9930380f0bd8 ("cfg80211: implement IWRATE")
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    [bwh: Backported to 3.2:
    - Drop change in cfg80211_cqm_rssi_update()
    - Adjust context]
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    --- a/net/wireless/wext-compat.c
    +++ b/net/wireless/wext-compat.c
    @@ -1265,8 +1265,7 @@ static int cfg80211_wext_giwrate(struct
    {
    struct wireless_dev *wdev = dev->ieee80211_ptr;
    struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy);
    - /* we are under RTNL - globally locked - so can use a static struct */
    - static struct station_info sinfo;
    + struct station_info sinfo = {};
    u8 addr[ETH_ALEN];
    int err;

    \
     
     \ /
      Last update: 2018-02-28 18:30    [W:4.025 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site