mlme.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * cfg80211 MLME SAP interface
  3. *
  4. * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
  5. */
  6. #include <linux/kernel.h>
  7. #include <linux/module.h>
  8. #include <linux/netdevice.h>
  9. #include <linux/nl80211.h>
  10. #include <net/cfg80211.h>
  11. #include "core.h"
  12. #include "nl80211.h"
  13. void cfg80211_send_rx_auth(struct net_device *dev, const u8 *buf, size_t len)
  14. {
  15. struct wiphy *wiphy = dev->ieee80211_ptr->wiphy;
  16. struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
  17. nl80211_send_rx_auth(rdev, dev, buf, len);
  18. }
  19. EXPORT_SYMBOL(cfg80211_send_rx_auth);
  20. void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len)
  21. {
  22. struct wiphy *wiphy = dev->ieee80211_ptr->wiphy;
  23. struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
  24. nl80211_send_rx_assoc(rdev, dev, buf, len);
  25. }
  26. EXPORT_SYMBOL(cfg80211_send_rx_assoc);
  27. void cfg80211_send_rx_deauth(struct net_device *dev, const u8 *buf, size_t len)
  28. {
  29. struct wiphy *wiphy = dev->ieee80211_ptr->wiphy;
  30. struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
  31. nl80211_send_rx_deauth(rdev, dev, buf, len);
  32. }
  33. EXPORT_SYMBOL(cfg80211_send_rx_deauth);
  34. void cfg80211_send_rx_disassoc(struct net_device *dev, const u8 *buf,
  35. size_t len)
  36. {
  37. struct wiphy *wiphy = dev->ieee80211_ptr->wiphy;
  38. struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
  39. nl80211_send_rx_disassoc(rdev, dev, buf, len);
  40. }
  41. EXPORT_SYMBOL(cfg80211_send_rx_disassoc);