Quantcast
Channel: 우분투 한국 커뮤니티
Viewing all articles
Browse latest Browse all 4577

Re: 우분투 무선랜 드라이버 설치오류(iptime-N500u) 도와주세요.

$
0
0
Author: happyman
Forum: 서버/네트워크 게시판
Date: 2014-08-13

아~ 그러시군요.

제가 컴파일해보니 같은 에러가 나는데요. 올려주신 메세지는 warning이므로 그곳이 문제가 아니고, 그 메세지의 조금 위에 보시면 다음의 message가 나옵니다.

/home/ubuntu/Downloads/rtl8192du-master/os_dep/ioctl_cfg80211.c:3567:21: error: dereferencing pointer to incomplete type
size_t len = params->len;
^
/home/ubuntu/Downloads/rtl8192du-master/os_dep/ioctl_cfg80211.c:3568:41: error: dereferencing pointer to incomplete type
struct ieee80211_channel *chan = params->chan;
^
/home/ubuntu/Downloads/rtl8192du-master/os_dep/ioctl_cfg80211.c:3569:24: error: dereferencing pointer to incomplete type
const u8 *buf = params->buf;
^

보시다시피 error가 나왔죠? 파일 "s_dep/ioctl_cfg80211.c"의 line number, 3567, 3568, 3569의 3개 줄에서 params라는 변수에서 error가 났습니다. 그래서 그 file의 그 줄을 보니 다음과 같더군요.

static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
struct cfg80211_mgmt_tx_params *params,
u64 *cookie)
{
struct rtw_adapter *padapter =
(struct rtw_adapter *)wiphy_to_adapter(wiphy);
int ret = 0;
int tx_ret;
u32 dump_limit = RTW_MAX_MGMT_TX_CNT;
u32 dump_cnt = 0;
bool ack = true;
u8 category, action;
unsigned long start = jiffies;
size_t len = params->len;
struct ieee80211_channel *chan = params->chan;
const u8 *buf = params->buf;
struct ieee80211_mgmt *hdr = (struct ieee80211_mgmt *)buf;
u8 tx_ch = (u8) ieee80211_frequency_to_channel(chan->center_freq);

위에서 params->len, params->chan, params->buf가 들어있는 3줄이 보이시죠? 거기서 error가 나서 위 code의 변수 선언 부분을 보니, "struct cfg80211_mgmt_tx_params *params,"라는 부분이 보이는데요. 그러니, 어딘가 header file (.h 로 끝나는 file)에 cfg80211_mgmt_tx_params라는 이름의 struct가 선언되어 있을 것 같은데, 찾지를 못하겠네요. 컴파일러도 지금 이것을 찾지 못해서 컴파일 에러가 나온 것 같은데요.

제가 무선랜 드라이버를 아는 것이 아니라서 C의 지식만 찾으려니 찾지를 못하겠네요. 공부 겸 하신다니, 일단 한번 찾아보세요. 도움이 되어드리지 못해서 죄송합니다.

Viewing all articles
Browse latest Browse all 4577

Trending Articles