[PATCH] mac80211: always set carrier status on open

ieee80211_open should always set the carrier status since we may have set
it to off before.

Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Michael Wu 2007-05-20 09:44:00 -07:00 коммит произвёл John W. Linville
Родитель e8fdeca241
Коммит 52fb24cd83
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -2474,6 +2474,8 @@ static int ieee80211_open(struct net_device *dev)
if (sdata->type == IEEE80211_IF_TYPE_STA && if (sdata->type == IEEE80211_IF_TYPE_STA &&
!local->user_space_mlme) !local->user_space_mlme)
netif_carrier_off(dev); netif_carrier_off(dev);
else
netif_carrier_on(dev);
netif_start_queue(dev); netif_start_queue(dev);
return 0; return 0;