mlme.c (7c1e51a34afb110a010a73141a2b5f000f798875) | mlme.c (804483e90794256f9ed53e795ffbf1e94de237c8) |
---|---|
1/* 2 * cfg80211 MLME SAP interface 3 * 4 * Copyright (c) 2009, Jouni Malinen <j@w1.fi> 5 */ 6 7#include <linux/kernel.h> 8#include <linux/module.h> --- 800 unchanged lines hidden (view full) --- 809 810 /* Transmit the Action frame as requested by user space */ 811 return rdev->ops->mgmt_tx(&rdev->wiphy, dev, chan, offchan, 812 channel_type, channel_type_valid, 813 wait, buf, len, no_cck, dont_wait_for_ack, 814 cookie); 815} 816 | 1/* 2 * cfg80211 MLME SAP interface 3 * 4 * Copyright (c) 2009, Jouni Malinen <j@w1.fi> 5 */ 6 7#include <linux/kernel.h> 8#include <linux/module.h> --- 800 unchanged lines hidden (view full) --- 809 810 /* Transmit the Action frame as requested by user space */ 811 return rdev->ops->mgmt_tx(&rdev->wiphy, dev, chan, offchan, 812 channel_type, channel_type_valid, 813 wait, buf, len, no_cck, dont_wait_for_ack, 814 cookie); 815} 816 |
817bool cfg80211_rx_mgmt(struct net_device *dev, int freq, const u8 *buf, 818 size_t len, gfp_t gfp) | 817bool cfg80211_rx_mgmt(struct net_device *dev, int freq, int sig_mbm, 818 const u8 *buf, size_t len, gfp_t gfp) |
819{ 820 struct wireless_dev *wdev = dev->ieee80211_ptr; 821 struct wiphy *wiphy = wdev->wiphy; 822 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); 823 struct cfg80211_mgmt_registration *reg; 824 const struct ieee80211_txrx_stypes *stypes = 825 &wiphy->mgmt_stypes[wdev->iftype]; 826 struct ieee80211_mgmt *mgmt = (void *)buf; --- 22 unchanged lines hidden (view full) --- 849 continue; 850 851 if (memcmp(reg->match, data, reg->match_len)) 852 continue; 853 854 /* found match! */ 855 856 /* Indicate the received Action frame to user space */ | 819{ 820 struct wireless_dev *wdev = dev->ieee80211_ptr; 821 struct wiphy *wiphy = wdev->wiphy; 822 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); 823 struct cfg80211_mgmt_registration *reg; 824 const struct ieee80211_txrx_stypes *stypes = 825 &wiphy->mgmt_stypes[wdev->iftype]; 826 struct ieee80211_mgmt *mgmt = (void *)buf; --- 22 unchanged lines hidden (view full) --- 849 continue; 850 851 if (memcmp(reg->match, data, reg->match_len)) 852 continue; 853 854 /* found match! */ 855 856 /* Indicate the received Action frame to user space */ |
857 if (nl80211_send_mgmt(rdev, dev, reg->nlpid, freq, | 857 if (nl80211_send_mgmt(rdev, dev, reg->nlpid, 858 freq, sig_mbm, |
858 buf, len, gfp)) 859 continue; 860 861 result = true; 862 break; 863 } 864 865 spin_unlock_bh(&wdev->mgmt_registrations_lock); --- 90 unchanged lines hidden --- | 859 buf, len, gfp)) 860 continue; 861 862 result = true; 863 break; 864 } 865 866 spin_unlock_bh(&wdev->mgmt_registrations_lock); --- 90 unchanged lines hidden --- |