Linux wireless drivers development
 help / color / mirror / Atom feed
[parent not found: <831356585.2629841.1512420230218.ref@mail.yahoo.com>]
* [PATCH] rtl8187: add master mode
@ 2017-12-04 18:12 Gabriele Gristina
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriele Gristina @ 2017-12-04 18:12 UTC (permalink / raw)
  To: linux-wireless; +Cc: Herton Ronaldo Krzesinski, Hin-Tak Leung, Larry Finger

This patch add the master mode to rtl8187 wireless driver.

Signed-off-by: Gabriele Gristina <gabriele.gristina@gmail.com>

---

diff --git a/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
b/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
index 121b94f09714..8ef22f4382ae 100644
--- a/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
+++ b/drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
@@ -1113,6 +1113,7 @@ static int rtl8187_add_interface(struct ieee80211_hw *dev,
  goto exit;

  switch (vif->type) {
+ case NL80211_IFTYPE_AP:
  case NL80211_IFTYPE_STATION:
  case NL80211_IFTYPE_ADHOC:
  break;
@@ -1602,7 +1603,8 @@ static int rtl8187_probe(struct usb_interface *intf,
  priv->rfkill_mask = RFKILL_MASK_8198;
  }
  dev->vif_data_size = sizeof(struct rtl8187_vif);
- dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
+ dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_AP) |
+       BIT(NL80211_IFTYPE_STATION) |
        BIT(NL80211_IFTYPE_ADHOC) ;

  wiphy_ext_feature_set(dev->wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-04 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1990723570.2726060.1512424959242.ref@mail.yahoo.com>
2017-12-04 22:02 ` [PATCH] rtl8187: add master mode Hin-Tak Leung
2017-12-04 22:29   ` Larry Finger
     [not found] <831356585.2629841.1512420230218.ref@mail.yahoo.com>
2017-12-04 20:43 ` Hin-Tak Leung
2017-12-04 18:12 Gabriele Gristina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox