Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122657
b: refs/heads/master
c: 8dffff2
h: refs/heads/master
i:
  122655: f76f47c
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Dec 12, 2008
1 parent 75dd2fb commit b8df079
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f202aa2e1e1db1d20da9bcc3f5ad43c5a22d2d5
refs/heads/master: 8dffff216fcac4f79078478085e86d68db64922e
14 changes: 8 additions & 6 deletions trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,12 +886,14 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)

local->mdev->select_queue = ieee80211_select_queue;

/* add one default STA interface */
result = ieee80211_if_add(local, "wlan%d", NULL,
NL80211_IFTYPE_STATION, NULL);
if (result)
printk(KERN_WARNING "%s: Failed to add default virtual iface\n",
wiphy_name(local->hw.wiphy));
/* add one default STA interface if supported */
if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION)) {
result = ieee80211_if_add(local, "wlan%d", NULL,
NL80211_IFTYPE_STATION, NULL);
if (result)
printk(KERN_WARNING "%s: Failed to add default virtual iface\n",
wiphy_name(local->hw.wiphy));
}

rtnl_unlock();

Expand Down

0 comments on commit b8df079

Please sign in to comment.