source: trunk/package/mac80211/patches/520-cfg80211_get_freq.patch @ 20497

Last change on this file since 20497 was 20497, checked in by nbd, 7 years ago

mac80211: update to wireless-testing 2010-03-24

File size: 1.1 KB
  • net/wireless/core.h

    a b struct cfg80211_registered_device { 
    7676 
    7777        /* current channel */ 
    7878        struct ieee80211_channel *channel; 
     79        enum nl80211_channel_type channel_type; 
    7980 
    8081        /* must be last because of the way we do wiphy_priv(), 
    8182         * and it should at least be aligned to NETDEV_ALIGN */ 
  • net/wireless/chan.c

    a b int rdev_set_freq(struct cfg80211_regist 
    9797                return result; 
    9898 
    9999        rdev->channel = chan; 
     100        rdev->channel_type = channel_type; 
    100101 
    101102        return 0; 
    102103} 
  • net/wireless/nl80211.c

    a b static int nl80211_send_iface(struct sk_ 
    886886        NLA_PUT_U32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx); 
    887887        NLA_PUT_STRING(msg, NL80211_ATTR_IFNAME, dev->name); 
    888888        NLA_PUT_U32(msg, NL80211_ATTR_IFTYPE, dev->ieee80211_ptr->iftype); 
     889        if (rdev->channel) { 
     890                NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, rdev->channel->center_freq); 
     891                NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE, rdev->channel_type); 
     892        } 
     893 
    889894 
    890895        NLA_PUT_U32(msg, NL80211_ATTR_GENERATION, 
    891896                    rdev->devlist_generation ^ 
Note: See TracBrowser for help on using the repository browser.